Skip to content

Commit

Permalink
updating regexps
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Dec 20, 2023
1 parent f4b7050 commit ad6055f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/lambda_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ func TestLambdaCreation(t *testing.T) {
checkSubnetId := terraform.Output(t, terraformOptions, "subnet_ids")
checkSecurityGroupId := terraform.Output(t, terraformOptions, "security_group_ids")
re := regexp.MustCompile(`[{}\[\]\s]`)
SubnetID = re.ReplaceAllString(checkSubnetID, "")
SecurityGroupID = re.ReplaceAllString(checkSecurityGroupID, "")
SubnetId = re.ReplaceAllString(checkSubnetId, "")
SecurityGroupId = re.ReplaceAllString(checkSecurityGroupId, "")

assert.Regexp(t, regexp.MustCompile(`^instance-scheduler-lambda-function*`), functionName)
assert.Regexp(t, regexp.MustCompile(`^200*`), resultCode)
Expand Down

0 comments on commit ad6055f

Please sign in to comment.