Skip to content

Commit f5690e5

Browse files
authored
Attempt fix on the test (#15714)
1 parent df29785 commit f5690e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

mmv1/third_party/terraform/services/compute/data_source_google_compute_node_types_test.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ func testAccCheckGoogleComputeNodeTypes(n string) resource.TestCheckFunc {
6262
}
6363

6464
if !regexp.MustCompile(`-[0-9]+-[0-9]+$`).MatchString(v) {
65-
return fmt.Errorf("unexpected type format for %q, value is %v", idx, v)
65+
// Added this condition to cover https://github.com/hashicorp/terraform-provider-google/issues/24697
66+
if !regexp.MustCompile(`-[0-9]+-[0-9]+-[a-z]+$`).MatchString(v) {
67+
return fmt.Errorf("unexpected type format for %q, value is %v", idx, v)
68+
}
6669
}
6770
}
6871
return nil

0 commit comments

Comments
 (0)