From 751ccf891b02dd5f4c70ca2bc8c712e474009635 Mon Sep 17 00:00:00 2001 From: hellertang Date: Wed, 8 Jun 2022 11:32:32 +0800 Subject: [PATCH 1/2] fix testcases --- .../resource_tc_api_gateway_strategy_attachment_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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" From 6e6646056c4a629b1fefb523c858ada6c04e4617 Mon Sep 17 00:00:00 2001 From: hellertang Date: Wed, 8 Jun 2022 12:42:30 +0800 Subject: [PATCH 2/2] dcg add sleep protect --- tencentcloud/resource_tc_dc_gateway.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }