@@ -123,6 +123,53 @@ func TestAccIBMISInstanceProfilesDataSource_concom(t *testing.T) {
123123 },
124124 })
125125}
126+ func TestAccIBMISInstanceProfilesDataSource_sharedcore (t * testing.T ) {
127+ resName := "data.ibm_is_instance_profiles.test1"
128+
129+ resource .Test (t , resource.TestCase {
130+ PreCheck : func () { acc .TestAccPreCheck (t ) },
131+ Providers : acc .TestAccProviders ,
132+ Steps : []resource.TestStep {
133+ {
134+ Config : testAccCheckIBMISInstanceProfilesDataSourceConfig (),
135+ Check : resource .ComposeTestCheckFunc (
136+ resource .TestCheckResourceAttrSet (resName , "profiles.0.name" ),
137+ resource .TestCheckResourceAttrSet (resName , "profiles.0.family" ),
138+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.bandwidth.#" ),
139+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.family" ),
140+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.href" ),
141+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.memory.#" ),
142+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.architecture" ),
143+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.port_speed.#" ),
144+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_architecture.#" ),
145+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_count.#" ),
146+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.network_interface_count.#" ),
147+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.network_interface_count.0.type" ),
148+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.network_attachment_count.#" ),
149+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.network_attachment_count.0.type" ),
150+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_manufacturer.#" ),
151+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_manufacturer.0.type" ),
152+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_manufacturer.0.value" ),
153+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.confidential_compute_modes.#" ),
154+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.confidential_compute_modes.0.type" ),
155+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.confidential_compute_modes.0.values.#" ),
156+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.secure_boot_modes.#" ),
157+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.secure_boot_modes.0.type" ),
158+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.secure_boot_modes.0.values.#" ),
159+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_burst_limit.#" ),
160+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_burst_limit.0.type" ),
161+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_burst_limit.0.value" ),
162+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_percentage.#" ),
163+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_percentage.0.type" ),
164+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_percentage.0.values.#" ),
165+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_tenancy.#" ),
166+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_tenancy.0.type" ),
167+ resource .TestCheckResourceAttrSet ("data.ibm_is_instance_profiles.test1" , "profiles.0.vcpu_tenancy.0.values.#" ),
168+ ),
169+ },
170+ },
171+ })
172+ }
126173
127174func testAccCheckIBMISInstanceProfilesDataSourceConfig () string {
128175 // status filter defaults to empty
0 commit comments