diff --git a/tencentcloud/resource_tc_api_gateway_strategy_attachment_test.go b/tencentcloud/resource_tc_api_gateway_strategy_attachment_test.go index 60e891ad51..145458c193 100644 --- a/tencentcloud/resource_tc_api_gateway_strategy_attachment_test.go +++ b/tencentcloud/resource_tc_api_gateway_strategy_attachment_test.go @@ -99,7 +99,7 @@ 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" @@ -107,14 +107,14 @@ resource "tencentcloud_api_gateway_service" "service" { 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" diff --git a/tencentcloud/resource_tc_dc_gateway.go b/tencentcloud/resource_tc_dc_gateway.go index 67f0fc9075..3a471bc16c 100644 --- a/tencentcloud/resource_tc_dc_gateway.go +++ b/tencentcloud/resource_tc_dc_gateway.go @@ -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) }