@@ -125,7 +125,7 @@ func TestGetReplicationSpecAttributesFromOldAPI(t *testing.T) {
125125 }
126126}
127127
128- func TestAccAdvancedCluster_basicTenant_flexUpgrade (t * testing.T ) {
128+ func TestAccAdvancedCluster_basicTenant (t * testing.T ) {
129129 var (
130130 projectID , clusterName = acc .ProjectIDExecutionWithCluster (t , 1 )
131131 clusterNameUpdated = acc .RandomClusterName ()
@@ -143,10 +143,26 @@ func TestAccAdvancedCluster_basicTenant_flexUpgrade(t *testing.T) {
143143 Config : configTenant (t , true , projectID , clusterNameUpdated , "" ),
144144 Check : checkTenant (true , projectID , clusterNameUpdated ),
145145 },
146- acc .TestStepImportCluster (resourceName ),
146+ },
147+ })
148+ }
149+
150+ func TestAccAdvancedCluster_basicTenant_flexUpgrade (t * testing.T ) {
151+ var (
152+ projectID , clusterName = acc .ProjectIDExecutionWithCluster (t , 1 )
153+ )
154+ resource .ParallelTest (t , resource.TestCase {
155+ PreCheck : acc .PreCheckBasicSleep (t , nil , projectID , clusterName ),
156+ ProtoV6ProviderFactories : acc .TestAccProviderV6Factories ,
157+ CheckDestroy : acc .CheckDestroyCluster ,
158+ Steps : []resource.TestStep {
147159 {
148- Config : configTenantUpgradeToFlex (t , true , projectID , clusterNameUpdated ),
149- Check : checkFlexClusterConfig (projectID , clusterNameUpdated , "AWS" , "US_EAST_1" , false ),
160+ Config : configTenant (t , true , projectID , clusterName , "" ),
161+ Check : checkTenant (true , projectID , clusterName ),
162+ },
163+ {
164+ Config : configTenantUpgradeToFlex (t , true , projectID , clusterName ),
165+ Check : checkFlexClusterConfig (projectID , clusterName , "AWS" , "US_EAST_1" , false ),
150166 },
151167 },
152168 })
0 commit comments