@@ -98,7 +98,7 @@ func TestAccIbmIsShareMountTargetVNISubnet(t *testing.T) {
9898 vpcname := fmt .Sprintf ("tf-vpc-name-%d" , acctest .RandIntRange (10 , 100 ))
9999 targetName := fmt .Sprintf ("tf-target-%d" , acctest .RandIntRange (10 , 100 ))
100100 targetNameUpdate := fmt .Sprintf ("tf-target-%d" , acctest .RandIntRange (10 , 100 ))
101- sname := fmt .Sprintf ("tf-fs-name-%d" , acctest .RandIntRange (10 , 100 ))
101+ sname := fmt .Sprintf ("tf-fs-mt-vni- name-%d" , acctest .RandIntRange (10 , 100 ))
102102 subnetName := fmt .Sprintf ("tf-subnet-name-%d" , acctest .RandIntRange (10 , 100 ))
103103 vniName := fmt .Sprintf ("tf-vni-name-%d" , acctest .RandIntRange (10 , 100 ))
104104 vniNameUpdated := fmt .Sprintf ("tf-vni-name-updated-%d" , acctest .RandIntRange (10 , 100 ))
@@ -398,7 +398,6 @@ func testAccCheckIbmIsShareMountTargetConfigVNIProtocolStateFilteringMode(vpcNam
398398 primary_ip {
399399 name = "%s"
400400 address = "${replace(ibm_is_subnet.testacc_subnet.ipv4_cidr_block, "0/24", "14")}"
401- auto_delete = %t
402401 }
403402 subnet = ibm_is_subnet.testacc_subnet.id
404403 protocol_state_filtering_mode = "auto"
@@ -407,9 +406,9 @@ func testAccCheckIbmIsShareMountTargetConfigVNIProtocolStateFilteringMode(vpcNam
407406 name = "%s"
408407 }
409408 data "ibm_is_virtual_network_interface" "is_virtual_network_interface" {
410- virtual_network_interface = ibm_is_share_mount_target.is_share_target.virtual_network_interface.0 .id
409+ virtual_network_interface = ibm_is_share_mount_target.is_share_target.virtual_network_interface[0] .id
411410 }
412- ` , sname , acc .ShareProfileName , vpcName , subnetName , acc .ISCIDR , vniName , pIpName , false , targetName )
411+ ` , sname , acc .ShareProfileName , vpcName , subnetName , acc .ISCIDR , vniName , pIpName , targetName )
413412}
414413
415414func testAccCheckIbmIsShareMountTargetConfigVNIProtocolStateFilteringModeUpdate (vpcName , sname , targetName , subnetName , vniName , pIpName string ) string {
@@ -439,15 +438,17 @@ func testAccCheckIbmIsShareMountTargetConfigVNIProtocolStateFilteringModeUpdate(
439438 primary_ip {
440439 name = "%s"
441440 address = "${replace(ibm_is_subnet.testacc_subnet.ipv4_cidr_block, "0/24", "14")}"
442- auto_delete = %t
443441 }
444442 subnet = ibm_is_subnet.testacc_subnet.id
445443 protocol_state_filtering_mode = "enabled"
446444 }
447445
448446 name = "%s"
449447 }
450- ` , sname , acc .ShareProfileName , vpcName , subnetName , acc .ISCIDR , vniName , pIpName , false , targetName )
448+ data "ibm_is_virtual_network_interface" "is_virtual_network_interface" {
449+ virtual_network_interface = ibm_is_share_mount_target.is_share_target.virtual_network_interface[0].id
450+ }
451+ ` , sname , acc .ShareProfileName , vpcName , subnetName , acc .ISCIDR , vniName , pIpName , targetName )
451452}
452453
453454func testAccCheckIbmIsShareMountTargetConfigVNI (vpcName , sname , targetName , subnetName , vniName , pIpName string ) string {
@@ -477,14 +478,13 @@ func testAccCheckIbmIsShareMountTargetConfigVNI(vpcName, sname, targetName, subn
477478 primary_ip {
478479 name = "%s"
479480 address = "${replace(ibm_is_subnet.testacc_subnet.ipv4_cidr_block, "0/24", "14")}"
480- auto_delete = %t
481481 }
482482 subnet = ibm_is_subnet.testacc_subnet.id
483483 }
484484
485485 name = "%s"
486486 }
487- ` , sname , acc .ShareProfileName , vpcName , subnetName , acc .ISCIDR , vniName , pIpName , false , targetName )
487+ ` , sname , acc .ShareProfileName , vpcName , subnetName , acc .ISCIDR , vniName , pIpName , targetName )
488488}
489489
490490func testAccCheckIbmIsShareTargetConfig (vpcName , sname , targetName string ) string {
0 commit comments