From aadacd13f635c6f633b49256b35edf7d86651793 Mon Sep 17 00:00:00 2001 From: Hope Aitchison Date: Wed, 20 Dec 2023 11:42:57 +0000 Subject: [PATCH] updating checkSubnetId --- test/lambda_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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