@@ -440,3 +440,75 @@ data "google_compute_network" "default" {
440
440
}
441
441
` , context )
442
442
}
443
+
444
+ func TestAccNetappStoragePool_customPerformanceEnabledStoragePoolCreateExample_update (t * testing.T ) {
445
+ context := map [string ]interface {}{
446
+ "network_name" : acctest .BootstrapSharedServiceNetworkingConnection (t , "gcnv-network-config-3" , acctest .ServiceNetworkWithParentService ("netapp.servicenetworking.goog" )),
447
+ "random_suffix" : acctest .RandString (t , 10 ),
448
+ }
449
+
450
+ acctest .VcrTest (t , resource.TestCase {
451
+ PreCheck : func () { acctest .AccTestPreCheck (t ) },
452
+ ProtoV5ProviderFactories : acctest .ProtoV5ProviderFactories (t ),
453
+ CheckDestroy : testAccCheckNetappStoragePoolDestroyProducer (t ),
454
+ Steps : []resource.TestStep {
455
+ {
456
+ Config : testAccNetappStoragePool_customPerformanceEnabledStoragePoolCreateExample_full (context ),
457
+ },
458
+ {
459
+ ResourceName : "google_netapp_storage_pool.test_pool" ,
460
+ ImportState : true ,
461
+ ImportStateVerify : true ,
462
+ ImportStateVerifyIgnore : []string {"location" , "name" , "labels" , "terraform_labels" },
463
+ },
464
+ {
465
+ Config : testAccNetappStoragePool_customPerformanceEnabledStoragePoolCreateExample_update (context ),
466
+ },
467
+ {
468
+ ResourceName : "google_netapp_storage_pool.test_pool" ,
469
+ ImportState : true ,
470
+ ImportStateVerify : true ,
471
+ ImportStateVerifyIgnore : []string {"location" , "name" , "labels" , "terraform_labels" },
472
+ },
473
+ },
474
+ })
475
+ }
476
+
477
+ func testAccNetappStoragePool_customPerformanceEnabledStoragePoolCreateExample_full (context map [string ]interface {}) string {
478
+ return acctest .Nprintf (`
479
+ resource "google_netapp_storage_pool" "test_pool" {
480
+ name = "tf-test-pool%{random_suffix}"
481
+ location = "us-east4-a"
482
+ service_level = "FLEX"
483
+ capacity_gib = "2048"
484
+ network = data.google_compute_network.default.id
485
+ description = "this is a test description"
486
+ custom_performance_enabled = true
487
+ total_throughput_mibps = "200"
488
+ }
489
+
490
+ data "google_compute_network" "default" {
491
+ name = "%{network_name}"
492
+ }
493
+ ` , context )
494
+ }
495
+
496
+ func testAccNetappStoragePool_customPerformanceEnabledStoragePoolCreateExample_update (context map [string ]interface {}) string {
497
+ return acctest .Nprintf (`
498
+ resource "google_netapp_storage_pool" "test_pool" {
499
+ name = "tf-test-pool%{random_suffix}"
500
+ location = "us-east4-a"
501
+ service_level = "FLEX"
502
+ capacity_gib = "2048"
503
+ network = data.google_compute_network.default.id
504
+ description = "this is updated test description"
505
+ custom_performance_enabled = true
506
+ total_throughput_mibps = "200"
507
+ total_iops = "3500"
508
+ }
509
+
510
+ data "google_compute_network" "default" {
511
+ name = "%{network_name}"
512
+ }
513
+ ` , context )
514
+ }
0 commit comments