File tree Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Expand file tree Collapse file tree 3 files changed +27
-5
lines changed Original file line number Diff line number Diff line change 204204 {
205205 "key" : " mongodb_version" ,
206206 "hidden" : true ,
207- "default_value" : " 7.0"
207+ "default_value" : " 8.0" ,
208+ "options" : [
209+ {
210+ "displayname" : " 8.0" ,
211+ "value" : " 8.0"
212+ },
213+ {
214+ "displayname" : " 7.0" ,
215+ "value" : " 7.0"
216+ }
217+ ]
208218 },
209219 {
210220 "key" : " plan"
525535 {
526536 "key" : " mongodb_version" ,
527537 "hidden" : true ,
528- "default_value" : " 7.0"
538+ "default_value" : " 8.0" ,
539+ "options" : [
540+ {
541+ "displayname" : " 8.0" ,
542+ "value" : " 8.0"
543+ },
544+ {
545+ "displayname" : " 7.0" ,
546+ "value" : " 7.0"
547+ }
548+ ]
529549 },
530550 {
531551 "key" : " plan"
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ import (
2525const fscloudExampleTerraformDir = "examples/fscloud"
2626const fullyConfigurableSolutionTerraformDir = "solutions/fully-configurable"
2727const securityEnforcedSolutionTerraformDir = "solutions/security-enforced"
28- const latestVersion = "7.0"
28+ const latestVersion = "8.0"
29+ const lowestVersion = "7.0"
2930
3031// Use existing resource group
3132const resourceGroup = "geretain-test-mongo"
@@ -227,7 +228,7 @@ func TestRunExistingInstance(t *testing.T) {
227228 Vars : map [string ]interface {}{
228229 "prefix" : prefix ,
229230 "region" : region ,
230- "mongodb_version" : latestVersion ,
231+ "mongodb_version" : lowestVersion ,
231232 "service_endpoints" : "private" ,
232233 },
233234 // Set Upgrade to true to ensure latest version of providers and modules are used by terratest.
Original file line number Diff line number Diff line change @@ -20,9 +20,10 @@ variable "mongodb_version" {
2020 validation {
2121 condition = anytrue ([
2222 var . mongodb_version == null ,
23+ var . mongodb_version == " 8.0" ,
2324 var . mongodb_version == " 7.0" ,
2425 ])
25- error_message = " Version must be either 7.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
26+ error_message = " Version must be either 8.0 or 7.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
2627 }
2728}
2829
You can’t perform that action at this time.
0 commit comments