Skip to content

Commit ca7ecc9

Browse files
Modify compute instance tests (#13829) (#9915)
[upstream:67ea84675b7cf6fc759f8189f6a7312ddc5ed686] Signed-off-by: Modular Magician <[email protected]>
1 parent 531f91e commit ca7ecc9

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

google-beta/services/compute/resource_compute_instance_test.go

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2790,9 +2790,13 @@ func TestAccComputeInstance_enableDisplay(t *testing.T) {
27902790
computeInstanceImportStep("us-central1-a", instanceName, []string{"allow_stopping_for_update"}),
27912791
{
27922792
Config: testAccComputeInstance_enableDisplayUpdated(instanceName),
2793+
},
2794+
computeInstanceImportStep("us-central1-a", instanceName, []string{"allow_stopping_for_update"}),
2795+
{
2796+
Config: testAccComputeInstance_enableDisplay(instanceName),
27932797
Check: resource.ComposeTestCheckFunc(
27942798
acctest.GetTestMetadataForTgc("compute", "google_compute_instance.foobar",
2795-
testAccComputeInstance_enableDisplayUpdated(instanceName)),
2799+
testAccComputeInstance_enableDisplay(instanceName)),
27962800
),
27972801
},
27982802
computeInstanceImportStep("us-central1-a", instanceName, []string{"allow_stopping_for_update"}),
@@ -9576,7 +9580,8 @@ resource "google_compute_instance" "foobar" {
95769580
%{host_error_timeout_sec}
95779581
automatic_restart = true
95789582
}
9579-
}`, context)
9583+
}
9584+
`, context)
95809585
}
95819586

95829587
func testAccComputeInstance_shieldedVmConfig(instance string, enableSecureBoot bool, enableVtpm bool, enableIntegrityMonitoring bool) string {
@@ -10856,7 +10861,8 @@ resource "google_compute_instance" "foobar" {
1085610861
network_interface {
1085710862
network = "default"
1085810863
}
10859-
}`, instance)
10864+
}
10865+
`, instance)
1086010866
}
1086110867

1086210868
func testAccComputeInstance_partnerMetadata(instance string) string {

0 commit comments

Comments
 (0)