Skip to content

Commit

Permalink
chore: Updates mongodbatlas_advanced_cluster tests to expect temporar…
Browse files Browse the repository at this point in the history
…y SERVICE_UNAVAILABLE error when migrating from old to new schema (#2523)
  • Loading branch information
maastha authored Aug 26, 2024
1 parent 13c7208 commit cba054c
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package advancedcluster_test
import (
"fmt"
"os"
"regexp"
"testing"

"github.com/hashicorp/terraform-plugin-testing/helper/resource"
Expand Down Expand Up @@ -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),
Expand All @@ -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),
Expand Down

0 comments on commit cba054c

Please sign in to comment.