From bc304b74df2634a193f6e799289d9496e312ea9d Mon Sep 17 00:00:00 2001 From: Hope Aitchison Date: Wed, 20 Dec 2023 11:54:35 +0000 Subject: [PATCH] updating checkSubnetId and checkSecurityGroupId regexps --- test/lambda_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lambda_test.go b/test/lambda_test.go index dc14d08..68023aa 100644 --- a/test/lambda_test.go +++ b/test/lambda_test.go @@ -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) } \ No newline at end of file