Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions ibm_catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,17 @@
{
"key": "mongodb_version",
"hidden": true,
"default_value": "7.0"
"default_value": "8.0",
"options": [
{
"displayname": "8.0",
"value": "8.0"
},
{
"displayname": "7.0",
"value": "7.0"
}
]
},
{
"key": "plan"
Expand Down Expand Up @@ -525,7 +535,17 @@
{
"key": "mongodb_version",
"hidden": true,
"default_value": "7.0"
"default_value": "8.0",
"options": [
{
"displayname": "8.0",
"value": "8.0"
},
{
"displayname": "7.0",
"value": "7.0"
}
]
},
{
"key": "plan"
Expand Down
5 changes: 3 additions & 2 deletions tests/pr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ import (
const fscloudExampleTerraformDir = "examples/fscloud"
const fullyConfigurableSolutionTerraformDir = "solutions/fully-configurable"
const securityEnforcedSolutionTerraformDir = "solutions/security-enforced"
const latestVersion = "7.0"
const latestVersion = "8.0"
const lowestVersion = "7.0"

// Use existing resource group
const resourceGroup = "geretain-test-mongo"
Expand Down Expand Up @@ -227,7 +228,7 @@ func TestRunExistingInstance(t *testing.T) {
Vars: map[string]interface{}{
"prefix": prefix,
"region": region,
"mongodb_version": latestVersion,
"mongodb_version": lowestVersion,
"service_endpoints": "private",
},
// Set Upgrade to true to ensure latest version of providers and modules are used by terratest.
Expand Down
3 changes: 2 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ variable "mongodb_version" {
validation {
condition = anytrue([
var.mongodb_version == null,
var.mongodb_version == "8.0",
var.mongodb_version == "7.0",
])
error_message = "Version must be either 7.0. If no value is passed, the current preferred version of IBM Cloud Databases is used."
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."
}
}

Expand Down