diff --git a/internal/service/advancedcluster/resource_advanced_cluster_migration_test.go b/internal/service/advancedcluster/resource_advanced_cluster_migration_test.go index 48ffbf759b..69bd1d9db3 100644 --- a/internal/service/advancedcluster/resource_advanced_cluster_migration_test.go +++ b/internal/service/advancedcluster/resource_advanced_cluster_migration_test.go @@ -3,6 +3,7 @@ package advancedcluster_test import ( "fmt" "os" + "regexp" "testing" "github.com/hashicorp/terraform-plugin-testing/helper/resource" @@ -104,6 +105,11 @@ func TestMigAdvancedCluster_shardedMigrationFromOldToNewSchema(t *testing.T) { Config: configShardedTransitionOldToNewSchema(orgID, projectName, clusterName, false), Check: checkShardedTransitionOldToNewSchema(false), }, + { + ProtoV6ProviderFactories: acc.TestAccProviderV6Factories, + Config: configShardedTransitionOldToNewSchema(orgID, projectName, clusterName, true), + ExpectError: regexp.MustCompile("SERVICE_UNAVAILABLE"), + }, { ProtoV6ProviderFactories: acc.TestAccProviderV6Factories, Config: configShardedTransitionOldToNewSchema(orgID, projectName, clusterName, true), @@ -129,6 +135,11 @@ func TestMigAdvancedCluster_geoShardedMigrationFromOldToNewSchema(t *testing.T) Config: configGeoShardedTransitionOldToNewSchema(orgID, projectName, clusterName, false), Check: checkGeoShardedTransitionOldToNewSchema(false), }, + { + ProtoV6ProviderFactories: acc.TestAccProviderV6Factories, + Config: configShardedTransitionOldToNewSchema(orgID, projectName, clusterName, true), + ExpectError: regexp.MustCompile("SERVICE_UNAVAILABLE"), + }, { ProtoV6ProviderFactories: acc.TestAccProviderV6Factories, Config: configGeoShardedTransitionOldToNewSchema(orgID, projectName, clusterName, true),