Skip to content

Commit df562b9

Browse files
committed
Fix regex in Terratest.
1 parent f88a6c0 commit df562b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/src/examples_complete_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ func TestExamplesComplete(t *testing.T) {
2828
outputClusterName := terraform.Output(t, terraformOptions, "cluster_name")
2929

3030
// Verify we're getting back the outputs we expect
31-
assert.Regexp(t, "^eg-ue2-test-msk-test-[0-9a-fA-F]+$", outputClusterName)
31+
assert.Regexp(t, "^\"eg-ue2-test-msk-test-[0-9a-fA-F]+\"$", outputClusterName)
3232

3333
// Run `terraform output` to get the value of an output variable
3434
outputSecurityGroupName := terraform.Output(t, terraformOptions, "security_group_name")
3535

3636
// Verify we're getting back the outputs we expect
37-
assert.Regexp(t, "^eg-ue2-test-msk-test-[0-9a-fA-F]+broker$", outputSecurityGroupName)
37+
assert.Regexp(t, "^\"eg-ue2-test-msk-test-[0-9a-fA-F]+-broker\"$", outputSecurityGroupName)
3838
}

0 commit comments

Comments
 (0)