Skip to content

Commit d5de942

Browse files
committed
add
1 parent a0af6c9 commit d5de942

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tencentcloud/services/ccn/data_source_tc_ccn_route_table_input_policies_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ func TestAccTencentCloudCcnRouteTableInputPoliciesDataSource_basic(t *testing.T)
2121
tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_ccn_route_table_input_policies.example"),
2222
resource.TestCheckResourceAttrSet("data.tencentcloud_ccn_route_table_input_policies.example", "ccn_id"),
2323
resource.TestCheckResourceAttrSet("data.tencentcloud_ccn_route_table_input_policies.example", "route_table_id"),
24+
resource.TestCheckResourceAttr("data.tencentcloud_ccn_route_table_input_policies.example", "policy_set.#", "1"),
2425
),
2526
}},
2627
})
@@ -59,6 +60,7 @@ resource "tencentcloud_ccn_route_table_input_policies" "example" {
5960
}
6061
6162
data "tencentcloud_ccn_route_table_input_policies" "example" {
63+
depends_on = [ tencentcloud_ccn_route_table_input_policies.example ]
6264
ccn_id = tencentcloud_ccn.example.id
6365
route_table_id = tencentcloud_ccn_route_table.example.id
6466
}

0 commit comments

Comments
 (0)