Skip to content

Commit 474082e

Browse files
tongyimingmikatong
and
mikatong
authored
fix vpc ccn test (#2911)
Co-authored-by: mikatong <[email protected]>
1 parent 6062495 commit 474082e

5 files changed

+4
-4
lines changed

tencentcloud/services/ccn/resource_tc_ccn_attachment_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,11 @@ resource tencentcloud_ccn main {
180180
bandwidth_limit_type = "INTER_REGION_LIMIT"
181181
}
182182
183+
data "tencentcloud_user_info" "info" {}
184+
183185
resource tencentcloud_ccn_attachment attachment_ccnuin {
184186
ccn_id = tencentcloud_ccn.main.id
185-
ccn_uin = "100022770164"
187+
ccn_uin = data.tencentcloud_user_info.info.owner_uin
186188
instance_type = "VPC"
187189
instance_id = tencentcloud_vpc.vpc.id
188190
instance_region = var.region

tencentcloud/services/vpn/data_source_tc_vpn_gateways_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,6 @@ resource "tencentcloud_vpn_gateway" "my_cgw" {
4747
4848
data "tencentcloud_vpn_gateways" "cgws" {
4949
id = tencentcloud_vpn_gateway.my_cgw.id
50+
depends_on = [tencentcloud_vpn_gateway.my_cgw]
5051
}
5152
`

tencentcloud/services/vpn/resource_tc_vpn_connection_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import (
1616
)
1717

1818
func TestAccTencentCloudVpnConnectionResource_basic(t *testing.T) {
19-
t.Parallel()
2019
resource.Test(t, resource.TestCase{
2120
PreCheck: func() { tcacctest.AccPreCheck(t) },
2221
Providers: tcacctest.AccProviders,

tencentcloud/services/vpn/resource_tc_vpn_customer_gateway_configuration_download_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
)
1010

1111
func TestAccTencentCloudVpnCustomerGatewayConfigurationDownloadResource_basic(t *testing.T) {
12-
t.Parallel()
1312
resource.Test(t, resource.TestCase{
1413
PreCheck: func() {
1514
tcacctest.AccPreCheck(t)

tencentcloud/services/vpn/resource_tc_vpn_gateway_route_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ import (
1717
)
1818

1919
func TestAccTencentCloudVpnGatewayRoute_basic(t *testing.T) {
20-
t.Parallel()
2120
resource.Test(t, resource.TestCase{
2221
PreCheck: func() { tcacctest.AccPreCheck(t) },
2322
Providers: tcacctest.AccProviders,

0 commit comments

Comments
 (0)