@@ -25,7 +25,7 @@ func TestAccIBMISLBProfilesDatasource_basic(t *testing.T) {
2525 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.access_modes.#" ),
2626 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.access_modes.0.values.#" ),
2727 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.targetable_load_balancer_profiles.#" ),
28- resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.targetable_resource_types" ),
28+ resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.targetable_resource_types.# " ),
2929 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.route_mode_supported" ),
3030 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.href" ),
3131 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.udp_supported" ),
@@ -70,10 +70,10 @@ func TestAccIBMISLBProfilesDatasource_filter(t *testing.T) {
7070 Config : testDSCheckIBMISLBProfilesFilterConfig (),
7171 Check : resource .ComposeTestCheckFunc (
7272 resource .TestCheckResourceAttr ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.name" , "network-fixed" ),
73- resource .TestCheckResourceAttr ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.family" , "Network " ),
73+ resource .TestCheckResourceAttr ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.family" , "network " ),
7474 resource .TestCheckResourceAttr ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.route_mode_supported" , "true" ),
75+ resource .TestCheckResourceAttr ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.targetable_resource_types.0.values.0" , "instance" ),
7576 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.href" ),
76- resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.targetable_resource_types" ),
7777 resource .TestCheckResourceAttrSet ("data.ibm_is_lb_profiles.test_profiles" , "lb_profiles.0.udp_supported" ),
7878 ),
7979 },
0 commit comments