From ed090000ad3686486724622e29fd00da398a1009 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Fri, 26 Jan 2024 10:06:22 +0800 Subject: [PATCH 1/2] [TestCase] Fix TestAccCosmosDbPostgreSQLCluster_complete and TestAccCosmosDbPostgreSQLCluster_update --- .../cosmosdb_postgresql_cluster_resource_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go b/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go index 15795be3953e..f27de6e674db 100644 --- a/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go +++ b/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go @@ -182,14 +182,14 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" { location = azurerm_resource_group.test.location administrator_login_password = "H@Sh1CoR3!" - coordinator_storage_quota_in_mb = 131072 - coordinator_vcore_count = 2 + coordinator_storage_quota_in_mb = 32768 + coordinator_vcore_count = 1 node_count = 0 citus_version = "11.1" coordinator_public_ip_access_enabled = true ha_enabled = false - coordinator_server_edition = "GeneralPurpose" + coordinator_server_edition = "BurstableMemoryOptimized" maintenance_window { day_of_week = 0 @@ -201,8 +201,8 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" { node_server_edition = "MemoryOptimized" sql_version = "14" preferred_primary_zone = 1 - node_storage_quota_in_mb = 131072 - node_vcores = 2 + node_storage_quota_in_mb = 524288 + node_vcores = 4 shards_on_coordinator_enabled = true tags = { From df20c35ca799044f8e1cbf90bd1608c0dfb23729 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Fri, 26 Jan 2024 10:06:29 +0800 Subject: [PATCH 2/2] [TestCase] Fix TestAccCosmosDbPostgreSQLCluster_complete and TestAccCosmosDbPostgreSQLCluster_update --- .../cosmosdb_postgresql_cluster_resource_test.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go b/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go index f27de6e674db..19365fb94a8b 100644 --- a/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go +++ b/internal/services/cosmos/cosmosdb_postgresql_cluster_resource_test.go @@ -182,14 +182,14 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" { location = azurerm_resource_group.test.location administrator_login_password = "H@Sh1CoR3!" - coordinator_storage_quota_in_mb = 32768 - coordinator_vcore_count = 1 + coordinator_storage_quota_in_mb = 131072 + coordinator_vcore_count = 2 node_count = 0 citus_version = "11.1" coordinator_public_ip_access_enabled = true ha_enabled = false - coordinator_server_edition = "BurstableMemoryOptimized" + coordinator_server_edition = "GeneralPurpose" maintenance_window { day_of_week = 0 @@ -222,7 +222,7 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" { location = azurerm_resource_group.test.location administrator_login_password = "H@Sh1CoR4!" - coordinator_storage_quota_in_mb = 262144 + coordinator_storage_quota_in_mb = 524288 coordinator_vcore_count = 4 node_count = 2 @@ -241,7 +241,7 @@ resource "azurerm_cosmosdb_postgresql_cluster" "test" { node_server_edition = "GeneralPurpose" sql_version = "16" preferred_primary_zone = 2 - node_storage_quota_in_mb = 262144 + node_storage_quota_in_mb = 524288 node_vcores = 4 shards_on_coordinator_enabled = false