@@ -38,8 +38,9 @@ func TestAccTencentCloudTCRInstance_basic_and_update(t *testing.T) {
3838 Config : testAccTCRInstance_basic_update_remark ,
3939 Check : resource .ComposeAggregateTestCheckFunc (
4040 testAccCheckTCRInstanceExists ("tencentcloud_tcr_instance.mytcr_instance" ),
41- resource .TestCheckResourceAttr ("tencentcloud_tcr_instance.mytcr_instance" , "tags.tf " , "tf " ),
41+ resource .TestCheckResourceAttr ("tencentcloud_tcr_instance.mytcr_instance" , "tags.test " , "test " ),
4242 resource .TestCheckResourceAttr ("tencentcloud_tcr_instance.mytcr_instance" , "delete_bucket" , "true" ),
43+ resource .TestCheckResourceAttr ("tencentcloud_tcr_instance.mytcr_instance" , "open_public_operation" , "true" ),
4344 ),
4445 },
4546 },
@@ -96,7 +97,6 @@ resource "tencentcloud_tcr_instance" "mytcr_instance" {
9697 name = "testacctcrinstance1"
9798 instance_type = "basic"
9899 delete_bucket = true
99- open_public_operation = false
100100
101101 tags ={
102102 test = "test"
@@ -105,11 +105,11 @@ resource "tencentcloud_tcr_instance" "mytcr_instance" {
105105
106106const testAccTCRInstance_basic_update_remark = `
107107resource "tencentcloud_tcr_instance" "mytcr_instance" {
108- name = "testacctcrinstance2 "
108+ name = "testacctcrinstance1 "
109109 instance_type = "basic"
110110 delete_bucket = true
111111 open_public_operation = true
112112 tags ={
113- tf = "tf "
113+ test = "test "
114114 }
115115}`
0 commit comments