8
8
tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest"
9
9
)
10
10
11
- func TestAccTencentCloudWafBotSceneStatusConfigResource_basic (t * testing.T ) {
11
+ func TestAccTencentClouddWafBotSceneUCBRuleResource_basic (t * testing.T ) {
12
12
t .Parallel ()
13
13
resource .Test (t , resource.TestCase {
14
14
PreCheck : func () {
@@ -17,7 +17,7 @@ func TestAccTencentCloudWafBotSceneStatusConfigResource_basic(t *testing.T) {
17
17
Providers : tcacctest .AccProviders ,
18
18
Steps : []resource.TestStep {
19
19
{
20
- Config : testAccWafBotSceneStatusConfig ,
20
+ Config : testAccdWafBotSceneUCBRule ,
21
21
Check : resource .ComposeTestCheckFunc (
22
22
resource .TestCheckResourceAttrSet ("tencentcloud_waf_bot_scene_ucb_rule.example" , "id" ),
23
23
resource .TestCheckResourceAttrSet ("tencentcloud_waf_bot_scene_ucb_rule.example" , "domain" ),
@@ -26,7 +26,7 @@ func TestAccTencentCloudWafBotSceneStatusConfigResource_basic(t *testing.T) {
26
26
),
27
27
},
28
28
{
29
- Config : testAccWafBotSceneStatusConfigUpdate ,
29
+ Config : testAccdWafBotSceneUCBRuleUpdate ,
30
30
Check : resource .ComposeTestCheckFunc (
31
31
resource .TestCheckResourceAttrSet ("tencentcloud_waf_bot_scene_ucb_rule.example" , "id" ),
32
32
resource .TestCheckResourceAttrSet ("tencentcloud_waf_bot_scene_ucb_rule.example" , "domain" ),
@@ -43,7 +43,7 @@ func TestAccTencentCloudWafBotSceneStatusConfigResource_basic(t *testing.T) {
43
43
})
44
44
}
45
45
46
- const testAccWafBotSceneStatusConfig = `
46
+ const testAccdWafBotSceneUCBRule = `
47
47
resource "tencentcloud_waf_bot_scene_ucb_rule" "example" {
48
48
domain = "news.bots.icu"
49
49
scene_id = "3000000791"
@@ -86,7 +86,7 @@ resource "tencentcloud_waf_bot_scene_ucb_rule" "example" {
86
86
}
87
87
`
88
88
89
- const testAccWafBotSceneStatusConfigUpdate = `
89
+ const testAccdWafBotSceneUCBRuleUpdate = `
90
90
resource "tencentcloud_waf_bot_scene_ucb_rule" "example" {
91
91
domain = "news.bots.icu"
92
92
scene_id = "3000000791"
0 commit comments