Skip to content

Commit 62b24ab

Browse files
authored
chore: Updates MongoDBMajorVersion to be >6.0 #3563
1 parent 8237086 commit 62b24ab

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

internal/service/advancedcluster/resource_advanced_cluster_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,11 @@ func TestAccClusterAdvancedCluster_advancedConfig_oldMongoDBVersion(t *testing.T
398398
CheckDestroy: acc.CheckDestroyCluster,
399399
Steps: []resource.TestStep{
400400
{
401-
Config: configAdvanced(t, true, projectID, clusterName, "6.0", processArgs20240530, processArgs),
401+
Config: configAdvanced(t, true, projectID, clusterName, "7.0", processArgs20240530, processArgs),
402402
ExpectError: regexp.MustCompile(advancedcluster.ErrorDefaultMaxTimeMinVersion),
403403
},
404404
{
405-
Config: configAdvanced(t, true, projectID, clusterName, "6.0", processArgs20240530, processArgsCipherConfig),
405+
Config: configAdvanced(t, true, projectID, clusterName, "7.0", processArgs20240530, processArgsCipherConfig),
406406
Check: checkAdvanced(true, clusterName, "TLS1_2", processArgsCipherConfig),
407407
},
408408
acc.TestStepImportCluster(resourceName),

internal/service/backupcompliancepolicy/resource_backup_compliance_policy_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010

1111
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1212
"github.com/hashicorp/terraform-plugin-testing/terraform"
13+
1314
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/conversion"
1415
"github.com/mongodb/terraform-provider-mongodbatlas/internal/testutil/acc"
1516
)
@@ -68,7 +69,7 @@ func TestAccBackupCompliancePolicy_overwriteBackupPolicies(t *testing.T) {
6869
acc.ClusterAdvConfigOplogMinRetentionHours: 8,
6970
},
7071
ProjectID: projectIDTerraform,
71-
MongoDBMajorVersion: "6.0",
72+
MongoDBMajorVersion: "8.0",
7273
CloudBackup: true,
7374
DiskSizeGb: 12,
7475
RetainBackupsEnabled: true,

internal/testutil/acc/config_cluster_test.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ package acc_test
33
import (
44
"testing"
55

6-
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/constant"
7-
"github.com/mongodb/terraform-provider-mongodbatlas/internal/testutil/acc"
86
"github.com/stretchr/testify/assert"
97
"github.com/stretchr/testify/require"
8+
9+
"github.com/mongodb/terraform-provider-mongodbatlas/internal/common/constant"
10+
"github.com/mongodb/terraform-provider-mongodbatlas/internal/testutil/acc"
1011
)
1112

1213
var standardClusterResource = `
@@ -41,7 +42,7 @@ resource "mongodbatlas_advanced_cluster" "cluster_info" {
4142
project_id = mongodbatlas_project.test.id
4243
backup_enabled = true
4344
cluster_type = "GEOSHARDED"
44-
mongo_db_major_version = "6.0"
45+
mongo_db_major_version = "8.0"
4546
name = "my-name"
4647
pit_enabled = true
4748
retain_backups_enabled = true
@@ -311,7 +312,7 @@ func Test_ClusterResourceHcl(t *testing.T) {
311312
ClusterName: clusterName,
312313
Geosharded: true,
313314
CloudBackup: true,
314-
MongoDBMajorVersion: "6.0",
315+
MongoDBMajorVersion: "8.0",
315316
RetainBackupsEnabled: true,
316317
ReplicationSpecs: []acc.ReplicationSpecRequest{
317318
{Region: "MY_REGION_1", ZoneName: "Zone X", InstanceSize: "M30", NodeCount: 30, ProviderName: constant.AZURE, EbsVolumeType: "STANDARD"},

0 commit comments

Comments
 (0)