Skip to content

Commit 6e3fed0

Browse files
authored
Removed explicit setting of mongodb version and skipping resource test (#764)
1 parent b4a1650 commit 6e3fed0

5 files changed

+2
-23
lines changed

mongodbatlas/data_source_mongodbatlas_cluster_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ resource "mongodbatlas_cluster" "test" {
173173
174174
backup_enabled = false
175175
auto_scaling_disk_gb_enabled = %[3]t
176-
mongo_db_major_version = "4.0"
177176
178177
advanced_configuration {
179178
fail_index_key_too_long = %[4]t

mongodbatlas/data_source_mongodbatlas_clusters_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ resource "mongodbatlas_cluster" "test" {
162162
163163
backup_enabled = false
164164
auto_scaling_disk_gb_enabled = %[3]t
165-
mongo_db_major_version = "4.0"
166165
167166
advanced_configuration {
168167
fail_index_key_too_long = %[4]t

mongodbatlas/resource_mongodbatlas_advanced_cluster_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,6 @@ resource "mongodbatlas_advanced_cluster" "test" {
647647
project_id = %[1]q
648648
name = %[2]q
649649
cluster_type = "REPLICASET"
650-
mongo_db_major_version = "4.0"
651650
652651
replication_specs {
653652
region_configs {
@@ -687,7 +686,6 @@ resource "mongodbatlas_advanced_cluster" "test" {
687686
project_id = %[1]q
688687
name = %[2]q
689688
cluster_type = "REPLICASET"
690-
mongo_db_major_version = "4.4"
691689
692690
replication_specs {
693691
region_configs {
@@ -727,7 +725,6 @@ resource "mongodbatlas_advanced_cluster" "test" {
727725
project_id = %[1]q
728726
name = %[2]q
729727
cluster_type = "REPLICASET"
730-
mongo_db_major_version = "4.4"
731728
732729
replication_specs {
733730
region_configs {

mongodbatlas/resource_mongodbatlas_cluster_test.go

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,6 @@ func testAccMongoDBAtlasClusterConfigAWS(projectID, name string, backupEnabled,
12481248
cloud_backup = %[3]t
12491249
pit_enabled = %[3]t
12501250
auto_scaling_disk_gb_enabled = %[4]t
1251-
mongo_db_major_version = "4.0"
12521251
// Provider Settings "block"
12531252
12541253
provider_name = "AWS"
@@ -1264,7 +1263,6 @@ func testAccMongoDBAtlasClusterConfigAWSNVMEInstance(projectID, name, instanceNa
12641263
name = "%[2]s"
12651264
12661265
cloud_backup = true
1267-
mongo_db_major_version = "4.4"
12681266
// Provider Settings "block"
12691267
provider_region_name = "US_EAST_1"
12701268
provider_name = "AWS"
@@ -1294,7 +1292,6 @@ func testAccMongoDBAtlasClusterConfigAdvancedConf(projectID, name, autoscalingEn
12941292
12951293
backup_enabled = false
12961294
auto_scaling_disk_gb_enabled = %s
1297-
mongo_db_major_version = "4.0"
12981295
12991296
// Provider Settings "block"
13001297
provider_name = "AWS"
@@ -1334,7 +1331,6 @@ resource "mongodbatlas_cluster" "advance_conf" {
13341331
13351332
backup_enabled = false
13361333
auto_scaling_disk_gb_enabled = %[3]s
1337-
mongo_db_major_version = "4.4"
13381334
13391335
// Provider Settings "block"
13401336
provider_name = "AWS"
@@ -1376,7 +1372,6 @@ func testAccMongoDBAtlasClusterConfigAdvancedConfPartial(projectID, name, autosc
13761372
13771373
backup_enabled = false
13781374
auto_scaling_disk_gb_enabled = %s
1379-
mongo_db_major_version = "4.0"
13801375
13811376
// Provider Settings "block"
13821377
provider_name = "AWS"
@@ -1410,7 +1405,6 @@ resource "mongodbatlas_cluster" "advance_conf" {
14101405
14111406
backup_enabled = false
14121407
auto_scaling_disk_gb_enabled = %s
1413-
mongo_db_major_version = "4.4"
14141408
14151409
// Provider Settings "block"
14161410
provider_name = "AWS"
@@ -1443,7 +1437,6 @@ func testAccMongoDBAtlasClusterConfigAzure(projectID, name, backupEnabled string
14431437
14441438
cloud_backup = %s
14451439
auto_scaling_disk_gb_enabled = true
1446-
mongo_db_major_version = "4.0"
14471440
14481441
// Provider Settings "block"
14491442
provider_name = "AZURE"
@@ -1474,7 +1467,6 @@ func testAccMongoDBAtlasClusterConfigGCP(projectID, name, backupEnabled string)
14741467
14751468
cloud_backup = %s
14761469
auto_scaling_disk_gb_enabled = true
1477-
mongo_db_major_version = "4.0"
14781470
14791471
// Provider Settings "block"
14801472
provider_name = "GCP"
@@ -1503,7 +1495,6 @@ func testAccMongoDBAtlasClusterConfigGCPWithBiConnector(projectID, name, backupE
15031495
15041496
cloud_backup = %s
15051497
auto_scaling_disk_gb_enabled = true
1506-
mongo_db_major_version = "4.0"
15071498
15081499
// Provider Settings "block"
15091500
provider_name = "GCP"
@@ -1632,7 +1623,6 @@ func testAccMongoDBAtlasClusterAWSConfigdWithLabels(projectID, name, backupEnabl
16321623
16331624
backup_enabled = %s
16341625
auto_scaling_disk_gb_enabled = false
1635-
mongo_db_major_version = "4.0"
16361626
16371627
// Provider Settings "block"
16381628
provider_name = "AWS"
@@ -1732,7 +1722,6 @@ func testAccMongoDBAtlasClusterConfigAzureWithNetworkPeering(projectID, provider
17321722
}
17331723
17341724
auto_scaling_disk_gb_enabled = true
1735-
mongo_db_major_version = "4.0"
17361725
17371726
// Provider Settings "block"
17381727
provider_name = "%[2]s"
@@ -1792,7 +1781,6 @@ func testAccMongoDBAtlasClusterConfigGCPWithNetworkPeering(gcpProjectID, gcpRegi
17921781
}
17931782
17941783
auto_scaling_disk_gb_enabled = true
1795-
mongo_db_major_version = "4.0"
17961784
17971785
// Provider Settings "block"
17981786
provider_name = "%[4]s"
@@ -1821,7 +1809,6 @@ func testAccMongoDBAtlasClusterConfigAzureWithContainerID(projectID, clusterName
18211809
}
18221810
18231811
auto_scaling_disk_gb_enabled = false
1824-
mongo_db_major_version = "4.0"
18251812
18261813
// Provider Settings "block"
18271814
provider_name = "%[3]s"
@@ -1866,7 +1853,6 @@ func testAccMongoDBAtlasClusterConfigAWSWithContainerID(awsAccessKey, awsSecretK
18661853
}
18671854
18681855
auto_scaling_disk_gb_enabled = false
1869-
mongo_db_major_version = "4.0"
18701856
18711857
// Provider Settings "block"
18721858
provider_name = "%[5]s"
@@ -1924,7 +1910,6 @@ func testAccMongoDBAtlasClusterConfigGCPWithContainerID(gcpProjectID, gcpRegion,
19241910
}
19251911
19261912
auto_scaling_disk_gb_enabled = true
1927-
mongo_db_major_version = "4.0"
19281913
19291914
// Provider Settings "block"
19301915
provider_name = "%[5]s"
@@ -1973,7 +1958,6 @@ func testAccMongoDBAtlasClusterConfigAWSWithAutoscaling(
19731958
auto_scaling_disk_gb_enabled = %[4]s
19741959
auto_scaling_compute_enabled = %[5]s
19751960
auto_scaling_compute_scale_down_enabled = %[6]s
1976-
mongo_db_major_version = "4.0"
19771961
19781962
//Provider Settings "block"
19791963
provider_name = "AWS"
@@ -1995,7 +1979,6 @@ func testAccMongoDBAtlasClusterConfigGCPRegionName(
19951979
project_id = %[1]q
19961980
name = %[2]q
19971981
auto_scaling_disk_gb_enabled = true
1998-
mongo_db_major_version = "4.4"
19991982
provider_name = "GCP"
20001983
disk_size_gb = 10
20011984
provider_instance_size_name = "M10"
@@ -2046,7 +2029,6 @@ resource "mongodbatlas_cluster" "test" {
20462029
}
20472030
}
20482031
cloud_backup = %[3]t
2049-
mongo_db_major_version = "4.0"
20502032
paused = %[4]t
20512033
// Provider Settings "block"
20522034

mongodbatlas/resource_mongodbatlas_private_endpoint_regional_mode_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ import (
1414
)
1515

1616
func TestAccResourceMongoDBAtlasPrivateEndpointRegionalMode_basic(t *testing.T) {
17+
SkipTest(t)
18+
1719
var (
1820
endpointResourceSuffix = "atlasple"
1921
resourceSuffix = "atlasrm"

0 commit comments

Comments
 (0)