@@ -3,6 +3,7 @@ package advancedcluster_test
3
3
import (
4
4
"fmt"
5
5
"os"
6
+ "regexp"
6
7
"testing"
7
8
8
9
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
@@ -104,6 +105,11 @@ func TestMigAdvancedCluster_shardedMigrationFromOldToNewSchema(t *testing.T) {
104
105
Config : configShardedTransitionOldToNewSchema (orgID , projectName , clusterName , false ),
105
106
Check : checkShardedTransitionOldToNewSchema (false ),
106
107
},
108
+ {
109
+ ProtoV6ProviderFactories : acc .TestAccProviderV6Factories ,
110
+ Config : configShardedTransitionOldToNewSchema (orgID , projectName , clusterName , true ),
111
+ ExpectError : regexp .MustCompile ("SERVICE_UNAVAILABLE" ),
112
+ },
107
113
{
108
114
ProtoV6ProviderFactories : acc .TestAccProviderV6Factories ,
109
115
Config : configShardedTransitionOldToNewSchema (orgID , projectName , clusterName , true ),
@@ -129,6 +135,11 @@ func TestMigAdvancedCluster_geoShardedMigrationFromOldToNewSchema(t *testing.T)
129
135
Config : configGeoShardedTransitionOldToNewSchema (orgID , projectName , clusterName , false ),
130
136
Check : checkGeoShardedTransitionOldToNewSchema (false ),
131
137
},
138
+ {
139
+ ProtoV6ProviderFactories : acc .TestAccProviderV6Factories ,
140
+ Config : configShardedTransitionOldToNewSchema (orgID , projectName , clusterName , true ),
141
+ ExpectError : regexp .MustCompile ("SERVICE_UNAVAILABLE" ),
142
+ },
132
143
{
133
144
ProtoV6ProviderFactories : acc .TestAccProviderV6Factories ,
134
145
Config : configGeoShardedTransitionOldToNewSchema (orgID , projectName , clusterName , true ),
0 commit comments