diff --git a/test/lambda_test.go b/test/lambda_test.go index ac85b0b..dc14d08 100644 --- a/test/lambda_test.go +++ b/test/lambda_test.go @@ -20,11 +20,13 @@ func TestLambdaCreation(t *testing.T) { functionName := terraform.Output(t, terraformOptions, "function_name") resultCode := terraform.Output(t, terraformOptions, "result_code") - checkSubnetID := terraform.Output(t, terraformOptions, "subnet_ids") + + checkSubnetId := terraform.Output(t, terraformOptions, "subnet_ids") checkSecurityGroupId := terraform.Output(t, terraformOptions, "security_group_ids") assert.Regexp(t, regexp.MustCompile(`^instance-scheduler-lambda-function*`), functionName) assert.Regexp(t, regexp.MustCompile(`^200*`), resultCode) + assert.Regexp(t, regexp.MustCompile(`^subnet-*`), checkSubnetId) assert.Regexp(t, regexp.MustCompile(`^sg-*`), checkSecurityGroupId) } \ No newline at end of file