Skip to content

Commit

Permalink
updating checkSubnetId and checkSecurityGroupId regexps
Browse files Browse the repository at this point in the history
  • Loading branch information
haitchison committed Dec 20, 2023
1 parent aadacd1 commit bc304b7
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 @@ -27,6 +27,6 @@ func TestLambdaCreation(t *testing.T) {
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)
assert.Regexp(t, regexp.MustCompile(`^subnet-\w+$`), checkSubnetId)
assert.Regexp(t, regexp.MustCompile(`^sg-\d+$`), checkSecurityGroupId)
}

0 comments on commit bc304b7

Please sign in to comment.