Skip to content

Commit

Permalink
test: fix cluster config generation without num_shards
Browse files Browse the repository at this point in the history
  • Loading branch information
EspenAlbert committed Jul 18, 2024
1 parent 16dcc1c commit 1198aea
Showing 1 changed file with 9 additions and 18 deletions.
27 changes: 9 additions & 18 deletions internal/testutil/acc/config_cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 7
Expand Down Expand Up @@ -52,8 +51,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
}
replication_specs {
num_shards = 1
zone_name = "Zone X"
zone_name = "Zone X"
region_configs {
priority = 7
Expand Down Expand Up @@ -82,8 +80,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 7
Expand Down Expand Up @@ -111,8 +108,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 7
Expand Down Expand Up @@ -140,8 +136,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 7
Expand All @@ -157,8 +152,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
}
}
replication_specs {
num_shards = 1
zone_name = "Zone 2"
zone_name = "Zone 2"
region_configs {
priority = 7
Expand All @@ -185,8 +179,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 7
Expand Down Expand Up @@ -227,8 +220,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 7
Expand Down Expand Up @@ -263,8 +255,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
project_id = "project"
replication_specs {
num_shards = 1
zone_name = "Zone 1"
zone_name = "Zone 1"
region_configs {
priority = 5
Expand Down

0 comments on commit 1198aea

Please sign in to comment.