Skip to content

Commit a49f99d

Browse files
authored
fix vpc test cases (#1750)
1 parent 8727a50 commit a49f99d

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tencentcloud/resource_tc_vpc_end_point_service_white_list.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func resourceTencentCloudVpcEndPointServiceWhiteListRead(d *schema.ResourceData,
160160
}
161161

162162
if endPointServiceWhiteList.Owner != nil {
163-
_ = d.Set("owner", endPointServiceWhiteList.Owner)
163+
_ = d.Set("owner", helper.UInt64ToStr(*endPointServiceWhiteList.Owner))
164164
}
165165

166166
if endPointServiceWhiteList.CreateTime != nil {

tencentcloud/resource_tc_vpc_end_point_service_white_list_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const testAccVpcEndPointServiceWhiteList = `
3131
3232
resource "tencentcloud_vpc_end_point_service_white_list" "end_point_service_white_list" {
3333
user_uin = "100020512675"
34-
end_point_service_id = "vpcsvc-69y13tdb"
34+
end_point_service_id = "vpcsvc-exphd2fd"
3535
description = "terraform for test"
3636
}
3737

tencentcloud/resource_tc_vpc_end_point_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ resource "tencentcloud_vpc_end_point" "end_point" {
3333
vpc_id = "vpc-391sv4w3"
3434
subnet_id = "subnet-ljyn7h30"
3535
end_point_name = "terraform-test"
36-
end_point_service_id = "vpcsvc-69y13tdb"
37-
end_point_vip = "10.0.2.1"
36+
end_point_service_id = "vpcsvc-exphd2fd"
37+
end_point_vip = "10.0.2.2"
3838
}
3939
4040
`

tencentcloud/resource_tc_vpc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func TestAccTencentCloudVpcV3Update(t *testing.T) {
120120
resource.TestCheckResourceAttrSet("tencentcloud_vpc.foo", "create_time"),
121121
resource.TestCheckResourceAttrSet("tencentcloud_vpc.foo", "dns_servers.#"),
122122

123-
resource.TestCheckTypeSetElemAttr("tencentcloud_vpc.foo", "dns_servers.*", "119.29.29.2"),
123+
resource.TestCheckTypeSetElemAttr("tencentcloud_vpc.foo", "dns_servers.*", "119.29.29.29"),
124124
resource.TestCheckTypeSetElemAttr("tencentcloud_vpc.foo", "dns_servers.*", "182.254.116.116"),
125125
),
126126
},

0 commit comments

Comments
 (0)