Skip to content

Commit 3c29cb1

Browse files
committed
add stream live test
1 parent 080a278 commit 3c29cb1

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

tencentcloud/resource_tc_mdl_stream_live_input_test.go

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ func TestAccTencentCloudMdlStreamLiveInputResource_basic(t *testing.T) {
1313
Providers: testAccProviders,
1414
Steps: []resource.TestStep{
1515
{
16-
Config: testAccMdlStreamLiveInput,
17-
Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_mdl_stream_live_input.stream_live_input", "id")),
16+
Config: testAccMdlStreamLiveInput,
17+
PreConfig: func() { testAccStepSetRegion(t, "ap-mumbai") },
18+
Check: resource.ComposeTestCheckFunc(resource.TestCheckResourceAttrSet("tencentcloud_mdl_stream_live_input.stream_live_input", "id")),
1819
},
1920
{
20-
Config: testAccMdlStreamLiveInputUpdate,
21+
Config: testAccMdlStreamLiveInputUpdate,
22+
PreConfig: func() { testAccStepSetRegion(t, "ap-mumbai") },
2123
Check: resource.ComposeTestCheckFunc(
2224
resource.TestCheckResourceAttrSet("tencentcloud_mdl_stream_live_input.stream_live_input", "id"),
23-
resource.TestCheckResourceAttr("tencentcloud_mdl_stream_live_input.stream_live_input", "name", "terraform-for-test"),
25+
resource.TestCheckResourceAttr("tencentcloud_mdl_stream_live_input.stream_live_input", "name", "terraform_for_test"),
2426
),
2527
},
2628
{
29+
PreConfig: func() { testAccStepSetRegion(t, "ap-mumbai") },
2730
ResourceName: "tencentcloud_mdl_stream_live_input.stream_live_input",
2831
ImportState: true,
2932
ImportStateVerify: true,
@@ -47,7 +50,7 @@ resource "tencentcloud_mdl_stream_live_input" "stream_live_input" {
4750
const testAccMdlStreamLiveInputUpdate = `
4851
4952
resource "tencentcloud_mdl_stream_live_input" "stream_live_input" {
50-
name = "terraform-for-test"
53+
name = "terraform_for_test"
5154
type = "RTP_PUSH"
5255
security_group_ids = [
5356
"6405DF9D000007DFB4EC"

0 commit comments

Comments
 (0)