Skip to content

Commit 2e74494

Browse files
authored
feat: support added for MongoDB version 7.0 (#506)
1 parent abc58d6 commit 2e74494

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

ibm_catalog.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,10 @@
193193
{
194194
"displayname": "6.0",
195195
"value": "6.0"
196+
},
197+
{
198+
"displayname": "7.0",
199+
"value": "7.0"
196200
}
197201

198202
]

tests/other_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ func TestRunFSCloudExample(t *testing.T) {
9090
TerraformVars: map[string]interface{}{
9191
"access_tags": permanentResources["accessTags"],
9292
"kms_key_crn": permanentResources["hpcs_south_root_key_crn"],
93-
"mongodb_version": "6.0", // Always lock this test into the latest supported MongoDB version
93+
"mongodb_version": "7.0", // Always lock this test into the latest supported MongoDB version
9494
},
9595
CloudInfoService: sharedInfoSvc,
9696
})

tests/pr_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ func TestRunStandardSolutionSchematics(t *testing.T) {
162162
{Name: "access_tags", Value: permanentResources["accessTags"], DataType: "list(string)"},
163163
{Name: "existing_kms_instance_crn", Value: permanentResources["hpcs_south_crn"], DataType: "string"},
164164
{Name: "kms_endpoint_type", Value: "private", DataType: "string"},
165-
{Name: "mongodb_version", Value: "6.0", DataType: "string"}, // Always lock this test into the latest supported MongoDB version
165+
{Name: "mongodb_version", Value: "7.0", DataType: "string"}, // Always lock this test into the latest supported MongoDB version
166166
{Name: "resource_group_name", Value: options.Prefix, DataType: "string"},
167167
{Name: "existing_secrets_manager_instance_crn", Value: permanentResources["secretsManagerCRN"], DataType: "string"},
168168
{Name: "service_credential_secrets", Value: serviceCredentialSecrets, DataType: "list(object)"},
@@ -251,7 +251,7 @@ func TestPlanValidation(t *testing.T) {
251251
options.TerraformOptions.Vars = map[string]interface{}{
252252
"prefix": options.Prefix,
253253
"region": "us-south",
254-
"mongodb_version": "6.0",
254+
"mongodb_version": "7.0",
255255
"provider_visibility": "public",
256256
"resource_group_name": options.Prefix,
257257
}

variables.tf

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ variable "mongodb_version" {
2121
condition = anytrue([
2222
var.mongodb_version == null,
2323
var.mongodb_version == "6.0",
24+
var.mongodb_version == "7.0",
2425
])
25-
error_message = "Version must be 6.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
26+
error_message = "Version must be either 6.0 or 7.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
2627
}
2728
}
2829

0 commit comments

Comments
 (0)