Skip to content

Commit 99e97e0

Browse files
authored
Fix HSMv2 type tests (#652)
1 parent b7d2df6 commit 99e97e0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rules/models/aws_cloudhsm_v2_cluster_invalid_hsm_type_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ func Test_AwsCloudhsmV2ClusterInvalidHsmTypeRule(t *testing.T) {
1919
Name: "It includes invalid characters",
2020
Content: `
2121
resource "aws_cloudhsm_v2_cluster" "foo" {
22-
hsm_type = "hsm1.micro"
22+
hsm_type = "t2.medium"
2323
}`,
2424
Expected: helper.Issues{
2525
{
2626
Rule: NewAwsCloudhsmV2ClusterInvalidHsmTypeRule(),
27-
Message: fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage("hsm1.micro"), `^((p|)hsm[0-9][a-z.]*\.[a-zA-Z]+)$`),
27+
Message: fmt.Sprintf(`"%s" does not match valid pattern %s`, truncateLongMessage("t2.medium"), `^((p|)hsm[0-9][a-z.]*\.[a-zA-Z]+)$`),
2828
},
2929
},
3030
},

rules/models/mappings/cloudhsmv2.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ test "aws_cloudhsm_v2_cluster" "source_backup_identifier" {
1919

2020
test "aws_cloudhsm_v2_cluster" "hsm_type" {
2121
ok = "hsm1.medium"
22-
ng = "hsm1.micro"
22+
ng = "t2.medium"
2323
}
2424

2525
test "aws_cloudhsm_v2_hsm" "cluster_id" {

0 commit comments

Comments
 (0)