@@ -25,6 +25,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) {
2525 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.port" ),
2626 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.status" ),
2727 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" ),
2829 ),
2930 },
3031 {
@@ -38,6 +39,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) {
3839 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerName" , "listeners.0.port" ),
3940 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerName" , "listeners.0.status" ),
4041 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" ),
4143 ),
4244 },
4345 {
@@ -51,6 +53,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_basic(t *testing.T) {
5153 resource .TestCheckResourceAttr ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.port" , "80" ),
5254 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.status" ),
5355 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" ),
5457 ),
5558 },
5659 },
@@ -77,6 +80,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) {
7780 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.auth_type" ),
7881 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.listenerId" , "listeners.0.forward_protocol" ),
7982 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" ),
8084 ),
8185 },
8286 {
@@ -93,6 +97,7 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) {
9397 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.name" , "listeners.0.auth_type" ),
9498 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.name" , "listeners.0.forward_protocol" ),
9599 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" ),
96101 ),
97102 },
98103 {
@@ -103,12 +108,13 @@ func TestAccDataSourceTencentCloudGaapLayer7Listeners_https(t *testing.T) {
103108 resource .TestCheckResourceAttr ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.protocol" , "HTTPS" ),
104109 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.id" ),
105110 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 " ),
107112 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.status" ),
108113 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.certificate_id" ),
109114 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.auth_type" ),
110115 resource .TestCheckResourceAttrSet ("data.tencentcloud_gaap_layer7_listeners.port" , "listeners.0.forward_protocol" ),
111116 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" ),
112118 ),
113119 },
114120 },
@@ -169,7 +175,7 @@ resource tencentcloud_gaap_certificate "foo" {
169175resource tencentcloud_gaap_layer7_listener "foo" {
170176 protocol = "HTTPS"
171177 name = "ci-test-gaap-l7-listener"
172- port = 80
178+ port = 81
173179 certificate_id = tencentcloud_gaap_certificate.foo.id
174180 auth_type = 0
175181 forward_protocol = "HTTP"
@@ -193,7 +199,7 @@ resource tencentcloud_gaap_certificate "foo" {
193199resource tencentcloud_gaap_layer7_listener "foo" {
194200 protocol = "HTTPS"
195201 name = "ci-test-gaap-l7-listener"
196- port = 80
202+ port = 81
197203 certificate_id = tencentcloud_gaap_certificate.foo.id
198204 auth_type = 0
199205 forward_protocol = "HTTP"
@@ -217,7 +223,7 @@ resource tencentcloud_gaap_certificate "foo" {
217223resource tencentcloud_gaap_layer7_listener "foo" {
218224 protocol = "HTTPS"
219225 name = "ci-test-gaap-l7-listener"
220- port = 80
226+ port = 81
221227 certificate_id = tencentcloud_gaap_certificate.foo.id
222228 auth_type = 0
223229 forward_protocol = "HTTP"
0 commit comments