@@ -11,16 +11,14 @@ func TestAccTencentCloudClbCustomizedConfigV2_basic(t *testing.T) {
11
11
t .Parallel ()
12
12
13
13
resource .Test (t , resource.TestCase {
14
- PreCheck : func () { tcacctest .AccPreCheck (t ) },
15
- Providers : tcacctest .AccProviders ,
16
- CheckDestroy : testAccCheckClbLogsetDestroy ,
14
+ PreCheck : func () { tcacctest .AccPreCheck (t ) },
15
+ Providers : tcacctest .AccProviders ,
17
16
Steps : []resource.TestStep {
18
17
{
19
18
Config : testAccClbCustomizedConfigV2_basic ,
20
19
Check : resource .ComposeTestCheckFunc (
21
- testAccCheckClbLogsetExists ("tencentcloud_clb_customized_config_v2.example" ),
22
20
resource .TestCheckResourceAttrSet ("tencentcloud_clb_customized_config_v2.example" , "create_time" ),
23
- resource .TestCheckResourceAttr ("tencentcloud_clb_customized_config_v2.example" , "name " , "clb_custom_config " ),
21
+ resource .TestCheckResourceAttr ("tencentcloud_clb_customized_config_v2.example" , "config_name " , "tf-example " ),
24
22
),
25
23
},
26
24
{
@@ -33,6 +31,9 @@ func TestAccTencentCloudClbCustomizedConfigV2_basic(t *testing.T) {
33
31
}
34
32
35
33
const testAccClbCustomizedConfigV2_basic = `
36
- resource "tencentcloud_clb_log_set" "test_logset" {
34
+ resource "tencentcloud_clb_customized_config_v2" "example" {
35
+ config_content = "client_max_body_size 224M;\r\nclient_body_timeout 60s;"
36
+ config_name = "tf-example"
37
+ config_type = "LOCATION"
37
38
}
38
39
`
0 commit comments