From bbe4516043b76821b8ccb9405c4bcc0826ecacc9 Mon Sep 17 00:00:00 2001 From: neil-yechenwei Date: Tue, 14 Feb 2023 11:54:24 +0800 Subject: [PATCH] TestCase: fix TCs of azurerm_netapp_volume --- .teamcity/components/settings.kt | 4 ++-- .../services/netapp/netapp_volume_resource_test.go | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.teamcity/components/settings.kt b/.teamcity/components/settings.kt index f0cac30b7ddb..3497b14891f7 100644 --- a/.teamcity/components/settings.kt +++ b/.teamcity/components/settings.kt @@ -110,8 +110,8 @@ var serviceTestConfigurationOverrides = mapOf( // MySQL has quota available in certain locations "mysql" to testConfiguration(locationOverride = LocationConfiguration("westeurope", "francecentral", "eastus2", false), useDevTestSubscription = true), - // netapp has a max of 10 accounts per subscription so lets limit it to 3 to account for broken ones, run Monday, Wednesday, Friday - "netapp" to testConfiguration(parallelism = 3, daysOfWeek = "2,4,6", locationOverride = LocationConfiguration("westeurope", "eastus2", "westus2", false), useDevTestSubscription = true), + // netapp has a max of 10 accounts per subscription so lets limit it to 1 to account for broken ones, run Monday, Wednesday, Friday + "netapp" to testConfiguration(parallelism = 1, daysOfWeek = "2,4,6", locationOverride = LocationConfiguration("westeurope", "eastus2", "westus2", false), useDevTestSubscription = true), // Orbital is only available in certain locations "orbital" to testConfiguration(locationOverride = LocationConfiguration("eastus", "southcentralus", "westus2", false)), diff --git a/internal/services/netapp/netapp_volume_resource_test.go b/internal/services/netapp/netapp_volume_resource_test.go index 959b0eda1b4f..06a45b34c6a9 100644 --- a/internal/services/netapp/netapp_volume_resource_test.go +++ b/internal/services/netapp/netapp_volume_resource_test.go @@ -532,7 +532,7 @@ resource "azurerm_netapp_volume" "test" { export_policy_rule { rule_index = 1 - allowed_clients = ["1.2.3.0/24"] + allowed_clients = ["0.0.0.0/0"] protocols_enabled = ["NFSv3"] unix_read_only = false unix_read_write = true @@ -651,10 +651,11 @@ resource "azurerm_netapp_volume" "test" { subnet_id = azurerm_subnet.test.id protocols = ["NFSv3"] storage_quota_in_gb = 101 + throughput_in_mibps = 1.562 export_policy_rule { rule_index = 1 - allowed_clients = ["1.2.3.0/24"] + allowed_clients = ["0.0.0.0/0"] protocols_enabled = ["NFSv3"] unix_read_only = false unix_read_write = true @@ -662,7 +663,7 @@ resource "azurerm_netapp_volume" "test" { export_policy_rule { rule_index = 2 - allowed_clients = ["1.2.5.0"] + allowed_clients = ["0.0.0.0/0"] protocols_enabled = ["NFSv3"] unix_read_only = true unix_read_write = false @@ -670,7 +671,7 @@ resource "azurerm_netapp_volume" "test" { export_policy_rule { rule_index = 3 - allowed_clients = ["1.2.6.0/24"] + allowed_clients = ["0.0.0.0/0"] protocols_enabled = ["NFSv3"] unix_read_only = true unix_read_write = false @@ -987,6 +988,7 @@ resource "azurerm_netapp_pool" "test" { account_name = azurerm_netapp_account.test.name service_level = "Standard" size_in_tb = 4 + qos_type = "Manual" tags = { "CreatedOnDate" = "2022-07-08T23:50:21Z",