Skip to content

Commit

Permalink
updating checkSubnetId
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Dec 20, 2023
1 parent 179c708 commit aadacd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/lambda_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit aadacd1

Please sign in to comment.