@@ -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" {
4750const testAccMdlStreamLiveInputUpdate = `
4851
4952resource "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