Skip to content

Commit 6f3fe61

Browse files
authored
fix compute tests due to API error message change (#15248)
1 parent f251a1c commit 6f3fe61

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

mmv1/third_party/terraform/services/compute/resource_compute_instance_template_test.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2013,7 +2013,7 @@ func TestAccComputeInstanceTemplate_gracefulShutdown(t *testing.T) {
20132013
},
20142014
{
20152015
Config: testAccComputeInstanceTemplate_gracefulShutdown(invalid_4),
2016-
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999, invalid"),
2016+
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999"),
20172017
},
20182018
{
20192019
Config: testAccComputeInstanceTemplate_gracefulShutdown(acceptableByApi_1),

mmv1/third_party/terraform/services/compute/resource_compute_instance_test.go.tmpl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4481,7 +4481,7 @@ func TestAccComputeInstance_GracefulShutdownWithResetUpdate(t *testing.T) {
44814481
},
44824482
{
44834483
Config: testAccComputeInstance_GracefulShutdownUpdate(ivalid_2),
4484-
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999, invalid"),
4484+
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999"),
44854485
},
44864486
},
44874487
})
@@ -4584,7 +4584,7 @@ func TestAccComputeInstance_GracefulShutdownWithoutResetUpdate(t *testing.T) {
45844584
},
45854585
{
45864586
Config: testAccComputeInstance_GracefulShutdownUpdate(ivalid_4),
4587-
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999, invalid"),
4587+
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999"),
45884588
},
45894589
},
45904590
})

mmv1/third_party/terraform/services/compute/resource_compute_region_instance_template_test.go.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ func TestAccComputeRegionInstanceTemplate_gracefulShutdown(t *testing.T) {
16561656
},
16571657
{
16581658
Config: testAccComputeRegionInstanceTemplate_gracefulShutdown(invalid_4),
1659-
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999, invalid"),
1659+
ExpectError: regexp.MustCompile("Must be less than or equal to 999999999"),
16601660
},
16611661
{
16621662
Config: testAccComputeRegionInstanceTemplate_gracefulShutdown(acceptableByApi_1),

0 commit comments

Comments
 (0)