Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -99,22 +99,22 @@ func testApiStrategyAttachmentExists(n string) resource.TestCheckFunc {

const testAPIGatewayServiceAttachmentBase = `
resource "tencentcloud_api_gateway_service" "service" {
service_name = "niceservice"
service_name = "attach_service"
protocol = "http&https"
net_type = ["INNER", "OUTER"]
ip_version = "IPv4"
}

resource "tencentcloud_api_gateway_ip_strategy" "test"{
service_id = tencentcloud_api_gateway_service.service.id
strategy_name = "tf_test"
strategy_name = "attach_strategy"
strategy_type = "BLACK"
strategy_data = "9.9.9.9"
}

resource "tencentcloud_api_gateway_api" "api" {
service_id = tencentcloud_api_gateway_service.service.id
api_name = "hello_update"
api_name = "attach_api"
api_desc = "my hello api update"
auth_type = "SECRET"
protocol = "HTTP"
Expand Down
2 changes: 1 addition & 1 deletion tencentcloud/resource_tc_dc_gateway.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func resourceTencentCloudDcGatewayCreate(d *schema.ResourceData, meta interface{
d.SetId(dcgId)

// add sleep protect, either network_instance_id will be set "".
time.Sleep(1)
time.Sleep(1 * time.Second)

return resourceTencentCloudDcGatewayRead(d, meta)
}
Expand Down