Skip to content

Commit

Permalink
Fix failing test: "TestAccComputeInstance_bootAndAttachedDisk_interfa…
Browse files Browse the repository at this point in the history
…ce" (#12698) (#9112)

[upstream:bcafdce5e9614b86644af9a41a61a52847a580e9]

Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored Jan 22, 2025
1 parent e23eb7b commit 69e07b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/12698.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
compute: fixed a failing test for `TestAccComputeInstance_bootAndAttachedDisk_interface` in `google_compte_instance`.
```
Original file line number Diff line number Diff line change
Expand Up @@ -11227,10 +11227,10 @@ func TestAccComputeInstance_bootAndAttachedDisk_interface(t *testing.T) {
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
Steps: []resource.TestStep{
{
Config: testAccComputeInstance_bootAndAttachedDisk_interface(instanceName1, diskName1, envvar.GetTestZoneFromEnv(), "h3-standard-88", "NVME", false),
Config: testAccComputeInstance_bootAndAttachedDisk_interface(instanceName1, diskName1, envvar.GetTestZoneFromEnv(), "c3-standard-22", "NVME", false),
Check: resource.ComposeTestCheckFunc(
resource.TestCheckResourceAttr("google_compute_instance.foobar", "boot_disk.0.interface", "NVME"),
resource.TestCheckResourceAttr("google_compute_instance.foobar", "machine_type", "h3-standard-88"),
resource.TestCheckResourceAttr("google_compute_instance.foobar", "machine_type", "c3-standard-22"),
),
},
//computeInstanceImportStep("us-central1-a", instanceName1, []string{"desired_status","allow_stopping_for_update"}),
Expand Down

0 comments on commit 69e07b2

Please sign in to comment.