Skip to content

Commit 17835c9

Browse files
committed
test: Add id to ignored fields in TestStepImportCluster to prevent flaky tests
1 parent aafc86a commit 17835c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/testutil/acc/advanced_cluster.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestStepImportCluster(resourceName string, ignorePrefixFields ...string) re
6161
// However, as import doesn't have a previous state to compare with, import will always fill them.
6262
// This will make these fields differ in the state, although the plan change won't be shown to the user as they're computed values.
6363
if !config.AdvancedClusterV2Schema() {
64-
ignorePrefixFields = append(ignorePrefixFields, "replication_specs")
64+
ignorePrefixFields = append(ignorePrefixFields, "replication_specs", "id") // TenantUpgrade changes the ID and can make the test flaky
6565
}
6666
return resource.TestStep{
6767
ResourceName: resourceName,

0 commit comments

Comments
 (0)