Skip to content

Commit 0811ada

Browse files
author
hellertang
authored
fix testcases (#993)
1 parent d04f6fd commit 0811ada

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

tencentcloud/basic_test.go

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,12 @@ data "tencentcloud_vpn_connections" "conns" {
4343
}
4444
`
4545

46+
// clb
47+
const (
48+
defaultSshCertificate = "vVe5TlLF"
49+
defaultSshCertificateB = "vVdYr3Ui"
50+
)
51+
4652
const (
4753
defaultRegion = "ap-guangzhou"
4854
defaultVpcId = "vpc-86v957zb"
@@ -57,9 +63,6 @@ const (
5763
defaultInsName = "tf-ci-test"
5864
defaultInsNameUpdate = "tf-ci-test-update"
5965

60-
defaultSshCertificate = "f8kGFR2T"
61-
defaultSshCertificateB = "fbW9Spiy"
62-
6366
defaultDayuBgp = "bgp-000006mq"
6467
defaultDayuBgpMul = "bgp-0000008o"
6568
defaultDayuBgpIp = "bgpip-00000294"

tencentcloud/resource_tc_clb_redirection_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ resource "tencentcloud_clb_listener" "listener_basic" {
164164
165165
resource "tencentcloud_clb_listener_rule" "rule_basic" {
166166
clb_id = tencentcloud_clb_instance.clb_basic.id
167-
listener_id = tencentcloud_clb_listener.listener_basic.id
167+
listener_id = tencentcloud_clb_listener.listener_basic.listener_id
168168
domain = "abc.com"
169169
url = "/"
170170
session_expire_time = 30
@@ -174,7 +174,7 @@ resource "tencentcloud_clb_listener_rule" "rule_basic" {
174174
175175
resource "tencentcloud_clb_redirection" "redirection_basic" {
176176
clb_id = tencentcloud_clb_instance.clb_basic.id
177-
target_listener_id = tencentcloud_clb_listener.listener_basic.id
177+
target_listener_id = tencentcloud_clb_listener.listener_basic.listener_id
178178
target_rule_id = tencentcloud_clb_listener_rule.rule_basic.id
179179
is_auto_rewrite = true
180180
}

0 commit comments

Comments
 (0)