Skip to content

Commit 5004630

Browse files
committed
test: adding db version to aa db test
1 parent f5d2e12 commit 5004630

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

provider/rediscloud_active_active_database_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ func TestAccResourceRedisCloudActiveActiveDatabase_CRUDI(t *testing.T) {
144144
resource.TestCheckResourceAttr(databaseResourceName, "global_alert.#", "1"),
145145
resource.TestCheckResourceAttr(databaseResourceName, "global_alert.0.name", "dataset-size"),
146146
resource.TestCheckResourceAttr(databaseResourceName, "global_alert.0.value", "60"),
147+
resource.TestCheckResourceAttr(databaseResourceName, "redis_version", "7.2"),
147148

148149
// Changes are ignored after creation
149150
resource.TestCheckResourceAttr(databaseResourceName, "global_modules.#", "1"),
@@ -161,7 +162,7 @@ func TestAccResourceRedisCloudActiveActiveDatabase_CRUDI(t *testing.T) {
161162
// Test datasource
162163
resource.TestCheckResourceAttr(datasourceName, "dataset_size_in_gb", "1"),
163164
resource.TestCheckResourceAttr(datasourceName, "support_oss_cluster_api", "true"),
164-
resource.TestCheckResourceAttr(datasourceName, "redis_version", "7.4"),
165+
resource.TestCheckResourceAttr(datasourceName, "redis_version", "7.2"),
165166
resource.TestCheckResourceAttr(datasourceName, "external_endpoint_for_oss_cluster_api", "true"),
166167
),
167168
},
@@ -300,6 +301,7 @@ resource "rediscloud_active_active_subscription_database" "example" {
300301
support_oss_cluster_api = false
301302
external_endpoint_for_oss_cluster_api = false
302303
enable_tls = false
304+
redis_version = "7.2"
303305
304306
global_data_persistence = "none"
305307
global_password = "%s"
@@ -416,7 +418,6 @@ resource "rediscloud_active_active_subscription" "example" {
416418
name = "%s"
417419
payment_method_id = data.rediscloud_payment_method.card.id
418420
cloud_provider = "AWS"
419-
redis_version = "latest"
420421
421422
creation_plan {
422423
dataset_size_in_gb = 1

0 commit comments

Comments
 (0)