Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TestCase: fix TCs of azurerm_netapp_volume #20446

Merged
merged 1 commit into from
Feb 14, 2023
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
4 changes: 2 additions & 2 deletions .teamcity/components/settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down
10 changes: 6 additions & 4 deletions internal/services/netapp/netapp_volume_resource_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -651,26 +651,27 @@ 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
}

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
}

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
Expand Down Expand Up @@ -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",
Expand Down