Skip to content

Commit d14fa1d

Browse files
fix TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate (#9665) (#6770)
[upstream:b0dc7d309387cf08e226528b46f7a271bfd469c1] Signed-off-by: Modular Magician <[email protected]>
1 parent 9ea937a commit d14fa1d

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.changelog/9665.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:none
2+
3+
```

google-beta/services/vmwareengine/resource_vmwareengine_private_cloud_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
3131
{
3232
Config: testPrivateCloudUpdateConfig(context, "description1", 1),
3333
Check: resource.ComposeTestCheckFunc(
34-
acctest.CheckDataSourceStateMatchesResourceStateWithIgnores("data.google_vmwareengine_private_cloud.ds", "google_vmwareengine_private_cloud.vmw-engine-pc", map[string]struct{}{}),
34+
acctest.CheckDataSourceStateMatchesResourceStateWithIgnores("data.google_vmwareengine_private_cloud.ds", "google_vmwareengine_private_cloud.vmw-engine-pc", map[string]struct{}{"type": {}}),
3535
testAccCheckGoogleVmwareengineNsxCredentialsMeta("data.google_vmwareengine_nsx_credentials.nsx-ds"),
3636
testAccCheckGoogleVmwareengineVcenterCredentialsMeta("data.google_vmwareengine_vcenter_credentials.vcenter-ds"),
3737
),
@@ -40,7 +40,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
4040
ResourceName: "google_vmwareengine_private_cloud.vmw-engine-pc",
4141
ImportState: true,
4242
ImportStateVerify: true,
43-
ImportStateVerifyIgnore: []string{"location", "name", "update_time"},
43+
ImportStateVerifyIgnore: []string{"location", "name", "update_time", "type"},
4444
},
4545
{
4646
Config: testPrivateCloudUpdateConfig(context, "description2", 4), // Expand PC
@@ -49,7 +49,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
4949
ResourceName: "google_vmwareengine_private_cloud.vmw-engine-pc",
5050
ImportState: true,
5151
ImportStateVerify: true,
52-
ImportStateVerifyIgnore: []string{"location", "name", "update_time"},
52+
ImportStateVerifyIgnore: []string{"location", "name", "update_time", "type"},
5353
},
5454
{
5555
Config: testPrivateCloudUpdateConfig(context, "description2", 3), // Shrink PC
@@ -58,7 +58,7 @@ func TestAccVmwareenginePrivateCloud_vmwareEnginePrivateCloudUpdate(t *testing.T
5858
ResourceName: "google_vmwareengine_private_cloud.vmw-engine-pc",
5959
ImportState: true,
6060
ImportStateVerify: true,
61-
ImportStateVerifyIgnore: []string{"location", "name", "update_time"},
61+
ImportStateVerifyIgnore: []string{"location", "name", "update_time", "type"},
6262
},
6363
},
6464
})

0 commit comments

Comments
 (0)