@@ -25,6 +25,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) {
25
25
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.port" ),
26
26
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.status" ),
27
27
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.create_time" ),
28
+ resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.proxy_id" ),
28
29
),
29
30
},
30
31
{
@@ -38,6 +39,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) {
38
39
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerName" , "listeners.0.port" ),
39
40
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerName" , "listeners.0.status" ),
40
41
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerName" , "listeners.0.create_time" ),
42
+ resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerName" , "listeners.0.proxy_id" ),
41
43
),
42
44
},
43
45
{
@@ -51,6 +53,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) {
51
53
resource .TestCheckResourceAttr ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.port" , "80" ),
52
54
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.status" ),
53
55
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.create_time" ),
56
+ resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.proxy_id" ),
54
57
),
55
58
},
56
59
},
@@ -77,6 +80,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) {
77
80
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.auth_type" ),
78
81
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.forward_protocol" ),
79
82
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.create_time" ),
83
+ resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.proxy_id" ),
80
84
),
81
85
},
82
86
{
@@ -93,6 +97,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) {
93
97
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.name" , "listeners.0.auth_type" ),
94
98
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.name" , "listeners.0.forward_protocol" ),
95
99
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.name" , "listeners.0.create_time" ),
100
+ resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.name" , "listeners.0.proxy_id" ),
96
101
),
97
102
},
98
103
{
@@ -103,12 +108,13 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) {
103
108
resource .TestCheckResourceAttr ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.protocol" , "HTTPS" ),
104
109
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.id" ),
105
110
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.name" ),
106
- resource .TestCheckResourceAttr ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.port" , "80 " ),
111
+ resource .TestCheckResourceAttr ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.port" , "81 " ),
107
112
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.status" ),
108
113
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.certificate_id" ),
109
114
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.auth_type" ),
110
115
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.forward_protocol" ),
111
116
resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.create_time" ),
117
+ resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.proxy_id" ),
112
118
),
113
119
},
114
120
},
@@ -169,7 +175,7 @@ resource tencentcloud_gaap_certificate "foo" {
169
175
resource tencentcloud_gaap_layer7_listener "foo" {
170
176
protocol = "HTTPS"
171
177
name = "ci-test-gaap-l7-listener"
172
- port = 80
178
+ port = 81
173
179
certificate_id = tencentcloud_gaap_certificate.foo.id
174
180
auth_type = 0
175
181
forward_protocol = "HTTP"
@@ -193,7 +199,7 @@ resource tencentcloud_gaap_certificate "foo" {
193
199
resource tencentcloud_gaap_layer7_listener "foo" {
194
200
protocol = "HTTPS"
195
201
name = "ci-test-gaap-l7-listener"
196
- port = 80
202
+ port = 81
197
203
certificate_id = tencentcloud_gaap_certificate.foo.id
198
204
auth_type = 0
199
205
forward_protocol = "HTTP"
@@ -217,7 +223,7 @@ resource tencentcloud_gaap_certificate "foo" {
217
223
resource tencentcloud_gaap_layer7_listener "foo" {
218
224
protocol = "HTTPS"
219
225
name = "ci-test-gaap-l7-listener"
220
- port = 80
226
+ port = 81
221
227
certificate_id = tencentcloud_gaap_certificate.foo.id
222
228
auth_type = 0
223
229
forward_protocol = "HTTP"
0 commit comments