@@ -30,9 +30,9 @@ func TestAccTencentCloudTseCngwRouteResource_basic(t *testing.T) {
3030 resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "hosts.#" , "1" ),
3131 resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "https_redirect_status_code" , "426" ),
3232 resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "paths.#" , "1" ),
33- // resource.TestCheckResourceAttr("tencentcloud_tse_cngw_route.cngw_route", "headers.#", "1"),
34- // resource.TestCheckResourceAttr("tencentcloud_tse_cngw_route.cngw_route", "headers.0.key", "req"),
35- // resource.TestCheckResourceAttr("tencentcloud_tse_cngw_route.cngw_route", "headers.0.value", "terraform"),
33+ resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "headers.#" , "1" ),
34+ resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "headers.0.key" , "req" ),
35+ resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "headers.0.value" , "terraform" ),
3636 resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "preserve_host" , "false" ),
3737 resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "protocols.#" , "2" ),
3838 resource .TestCheckResourceAttr ("tencentcloud_tse_cngw_route.cngw_route" , "route_name" , "terraform-route" ),
@@ -123,10 +123,10 @@ resource "tencentcloud_tse_cngw_route" "cngw_route" {
123123 paths = [
124124 "/user",
125125 ]
126- # headers {
127- # key = "req"
128- # value = "terraform"
129- # }
126+ headers {
127+ key = "req"
128+ value = "terraform"
129+ }
130130 preserve_host = false
131131 protocols = [
132132 "http",
0 commit comments