@@ -68,12 +68,12 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVE
6868 volname := fmt .Sprintf ("tf-vol-%d" , acctest .RandIntRange (10 , 100 ))
6969 name1 := fmt .Sprintf ("tfsnapshotuat-%d" , acctest .RandIntRange (10 , 100 ))
7070 name2 := fmt .Sprintf ("tfsnapshotuat-%d" , acctest .RandIntRange (10 , 100 ))
71- apiVersion := "2024-10-02 "
72- bareMetalServer := "enable_secure_boot== true"
73- instance := "enable_secure_boot== true"
74- apiVersionUpdate := "2024-10-05 "
75- bareMetalServerUpdate := "gpu.count > 0 && enable_secure_boot == true"
76- instanceUpdate := "gpu.count > 0 && enable_secure_boot == true"
71+ apiVersion := "2025-07-01 "
72+ bareMetalServer := "true"
73+ instance := "true"
74+ apiVersionUpdate := "2025-07-02 "
75+ bareMetalServerUpdate := "true"
76+ instanceUpdate := "true"
7777 resource .Test (t , resource.TestCase {
7878 PreCheck : func () { acc .TestAccPreCheck (t ) },
7979 Providers : acc .TestAccProviders ,
@@ -93,9 +93,9 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVE
9393 "ibm_is_snapshot.testacc_snapshot" , "allowed_use.0.instance" ),
9494 resource .TestCheckResourceAttrSet (
9595 "ibm_is_snapshot.testacc_snapshot" , "allowed_use.0.api_version" ),
96- resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "bare_metal_server" , bareMetalServer ),
97- resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "instance" , instance ),
98- resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "api_version" , apiVersion ),
96+ resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "allowed_use.0. bare_metal_server" , bareMetalServer ),
97+ resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "allowed_use.0. instance" , instance ),
98+ resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "allowed_use.0. api_version" , apiVersion ),
9999 ),
100100 },
101101 {
@@ -112,9 +112,9 @@ ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCKVmnMOlHKcZK8tpt3MP1lqOLAcqcJzhsvJcjscgVE
112112 "ibm_is_snapshot.testacc_snapshot" , "allowed_use.0.instance" ),
113113 resource .TestCheckResourceAttrSet (
114114 "ibm_is_snapshot.testacc_snapshot" , "allowed_use.0.api_version" ),
115- resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "bare_metal_server" , bareMetalServerUpdate ),
116- resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "instance" , instanceUpdate ),
117- resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "api_version" , apiVersionUpdate ),
115+ resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "allowed_use.0. bare_metal_server" , bareMetalServerUpdate ),
116+ resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "allowed_use.0. instance" , instanceUpdate ),
117+ resource .TestCheckResourceAttr ("ibm_is_snapshot.testacc_snapshot" , "allowed_use.0. api_version" , apiVersionUpdate ),
118118 ),
119119 },
120120 },
0 commit comments