Skip to content

Commit 4a03dbe

Browse files
ImportStateVerify is not compatible with custom diff (#7813) (#5580)
Signed-off-by: Modular Magician <[email protected]>
1 parent 0d18fdb commit 4a03dbe

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.changelog/7813.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/resource_bigtable_instance_test.go

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,17 @@ func TestAccBigtableInstance_cluster(t *testing.T) {
6868
ResourceName: "google_bigtable_instance.instance",
6969
ImportState: true,
7070
ImportStateVerify: true,
71-
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type"}, // we don't read instance type back
71+
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type", "cluster"}, // we don't read instance type back
7272
},
7373
{
7474
Config: testAccBigtableInstance_clusterReordered(instanceName, 5),
7575
},
7676
{
7777
ResourceName: "google_bigtable_instance.instance",
7878
ImportState: true,
79+
PlanOnly: true,
7980
ImportStateVerify: true,
80-
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type"}, // we don't read instance type back
81+
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type", "cluster"}, // we don't read instance type back
8182
},
8283
{
8384
Config: testAccBigtableInstance_clusterModified(instanceName, 5),
@@ -86,16 +87,17 @@ func TestAccBigtableInstance_cluster(t *testing.T) {
8687
ResourceName: "google_bigtable_instance.instance",
8788
ImportState: true,
8889
ImportStateVerify: true,
89-
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type"}, // we don't read instance type back
90+
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type", "cluster"}, // we don't read instance type back
9091
},
9192
{
9293
Config: testAccBigtableInstance_clusterReordered(instanceName, 5),
9394
},
9495
{
9596
ResourceName: "google_bigtable_instance.instance",
9697
ImportState: true,
98+
PlanOnly: true,
9799
ImportStateVerify: true,
98-
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type"}, // we don't read instance type back
100+
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type", "cluster"}, // we don't read instance type back
99101
},
100102
{
101103
Config: testAccBigtableInstance_clusterModifiedAgain(instanceName, 5),
@@ -104,7 +106,7 @@ func TestAccBigtableInstance_cluster(t *testing.T) {
104106
ResourceName: "google_bigtable_instance.instance",
105107
ImportState: true,
106108
ImportStateVerify: true,
107-
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type"}, // we don't read instance type back
109+
ImportStateVerifyIgnore: []string{"deletion_protection", "instance_type", "cluster"}, // we don't read instance type back
108110
},
109111
},
110112
})

0 commit comments

Comments
 (0)