Skip to content

Commit 1378637

Browse files
authored
Fix TestAccNetappVolume_volumeExportPolicyWithSquashMode Test (#15715)
1 parent 8f3f1f3 commit 1378637

File tree

1 file changed

+1
-16
lines changed

1 file changed

+1
-16
lines changed

mmv1/third_party/terraform/services/netapp/resource_netapp_volume_test.go.tmpl

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -989,7 +989,7 @@ func TestAccNetappVolume_volumeExportPolicyWithSquashMode(t *testing.T) {
989989
}
990990
acctest.VcrTest(t, resource.TestCase{
991991
PreCheck: func() { acctest.AccTestPreCheck(t) },
992-
ProtoV5ProviderFactories: acctest.ProtoV5ProviderBetaFactories(t),
992+
ProtoV5ProviderFactories: acctest.ProtoV5ProviderFactories(t),
993993
CheckDestroy: testAccCheckNetappVolumeDestroyProducer(t),
994994
ExternalProviders: map[string]resource.ExternalProvider{
995995
"time": {},
@@ -1047,7 +1047,6 @@ func TestAccNetappVolume_volumeExportPolicyWithSquashMode(t *testing.T) {
10471047
func testAccNetappVolume_volumeExportPolicyWithoutSquashMode(context map[string]interface{}) string {
10481048
return acctest.Nprintf(`
10491049
resource "google_netapp_storage_pool" "default" {
1050-
provider = google-beta
10511050
name = "tf-test-pool%{random_suffix}"
10521051
location = "northamerica-northeast1"
10531052
service_level = "PREMIUM"
@@ -1059,7 +1058,6 @@ func testAccNetappVolume_volumeExportPolicyWithoutSquashMode(context map[string]
10591058
create_duration = "3m"
10601059
}
10611060
resource "google_netapp_volume" "test_volume" {
1062-
provider = google-beta
10631061
location = "northamerica-northeast1"
10641062
name = "tf-test-test-volume%{random_suffix}"
10651063
capacity_gib = "100"
@@ -1077,7 +1075,6 @@ func testAccNetappVolume_volumeExportPolicyWithoutSquashMode(context map[string]
10771075
}
10781076

10791077
data "google_compute_network" "default" {
1080-
provider = google-beta
10811078
name = "%{network_name}"
10821079
}
10831080
`, context)
@@ -1086,7 +1083,6 @@ func testAccNetappVolume_volumeExportPolicyWithoutSquashMode(context map[string]
10861083
func testAccNetappVolume_volumeExportPolicyWithoutSquashModeUpdate(context map[string]interface{}) string {
10871084
return acctest.Nprintf(`
10881085
resource "google_netapp_storage_pool" "default" {
1089-
provider = google-beta
10901086
name = "tf-test-pool%{random_suffix}"
10911087
location = "northamerica-northeast1"
10921088
service_level = "PREMIUM"
@@ -1098,7 +1094,6 @@ func testAccNetappVolume_volumeExportPolicyWithoutSquashModeUpdate(context map[s
10981094
create_duration = "3m"
10991095
}
11001096
resource "google_netapp_volume" "test_volume" {
1101-
provider = google-beta
11021097
location = "northamerica-northeast1"
11031098
name = "tf-test-test-volume%{random_suffix}"
11041099
capacity_gib = "200"
@@ -1116,7 +1111,6 @@ func testAccNetappVolume_volumeExportPolicyWithoutSquashModeUpdate(context map[s
11161111
}
11171112

11181113
data "google_compute_network" "default" {
1119-
provider = google-beta
11201114
name = "%{network_name}"
11211115
}
11221116
`, context)
@@ -1125,7 +1119,6 @@ func testAccNetappVolume_volumeExportPolicyWithoutSquashModeUpdate(context map[s
11251119
func testAccNetappVolume_volumeExportPolicyWithSquashMode_allSquash(context map[string]interface{}) string {
11261120
return acctest.Nprintf(`
11271121
resource "google_netapp_storage_pool" "default" {
1128-
provider = google-beta
11291122
name = "tf-test-pool%{random_suffix}"
11301123
location = "northamerica-northeast1"
11311124
service_level = "PREMIUM"
@@ -1137,7 +1130,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_allSquash(context map[
11371130
create_duration = "3m"
11381131
}
11391132
resource "google_netapp_volume" "test_volume" {
1140-
provider = google-beta
11411133
location = "northamerica-northeast1"
11421134
name = "tf-test-test-volume%{random_suffix}"
11431135
capacity_gib = "100"
@@ -1156,7 +1148,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_allSquash(context map[
11561148
}
11571149

11581150
data "google_compute_network" "default" {
1159-
provider = google-beta
11601151
name = "%{network_name}"
11611152
}
11621153
`, context)
@@ -1165,7 +1156,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_allSquash(context map[
11651156
func testAccNetappVolume_volumeExportPolicyWithSquashMode_mutipleExportRules(context map[string]interface{}) string {
11661157
return acctest.Nprintf(`
11671158
resource "google_netapp_storage_pool" "default" {
1168-
provider = google-beta
11691159
name = "tf-test-pool%{random_suffix}"
11701160
location = "northamerica-northeast1"
11711161
service_level = "PREMIUM"
@@ -1177,7 +1167,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_mutipleExportRules(con
11771167
create_duration = "3m"
11781168
}
11791169
resource "google_netapp_volume" "test_volume" {
1180-
provider = google-beta
11811170
location = "northamerica-northeast1"
11821171
name = "tf-test-test-volume%{random_suffix}"
11831172
capacity_gib = "100"
@@ -1202,7 +1191,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_mutipleExportRules(con
12021191
}
12031192

12041193
data "google_compute_network" "default" {
1205-
provider = google-beta
12061194
name = "%{network_name}"
12071195
}
12081196
`, context)
@@ -1211,7 +1199,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_mutipleExportRules(con
12111199
func testAccNetappVolume_volumeExportPolicyWithSquashMode_switchMutipleExportRules(context map[string]interface{}) string {
12121200
return acctest.Nprintf(`
12131201
resource "google_netapp_storage_pool" "default" {
1214-
provider = google-beta
12151202
name = "tf-test-pool%{random_suffix}"
12161203
location = "northamerica-northeast1"
12171204
service_level = "PREMIUM"
@@ -1223,7 +1210,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_switchMutipleExportRul
12231210
create_duration = "3m"
12241211
}
12251212
resource "google_netapp_volume" "test_volume" {
1226-
provider = google-beta
12271213
location = "northamerica-northeast1"
12281214
name = "tf-test-test-volume%{random_suffix}"
12291215
capacity_gib = "100"
@@ -1248,7 +1234,6 @@ func testAccNetappVolume_volumeExportPolicyWithSquashMode_switchMutipleExportRul
12481234
}
12491235

12501236
data "google_compute_network" "default" {
1251-
provider = google-beta
12521237
name = "%{network_name}"
12531238
}
12541239
`, context)

0 commit comments

Comments
 (0)