@@ -38,8 +38,9 @@ func TestAccTencentCloudTCRInstance_basic_and_update(t *testing.T) {
38
38
Config : testAccTCRInstance_basic_update_remark ,
39
39
Check : resource .ComposeAggregateTestCheckFunc (
40
40
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 " ),
42
42
resource .TestCheckResourceAttr ("tencentcloud_tcr_instance.mytcr_instance" , "delete_bucket" , "true" ),
43
+ resource .TestCheckResourceAttr ("tencentcloud_tcr_instance.mytcr_instance" , "open_public_operation" , "true" ),
43
44
),
44
45
},
45
46
},
@@ -96,7 +97,6 @@ resource "tencentcloud_tcr_instance" "mytcr_instance" {
96
97
name = "testacctcrinstance1"
97
98
instance_type = "basic"
98
99
delete_bucket = true
99
- open_public_operation = false
100
100
101
101
tags ={
102
102
test = "test"
@@ -105,11 +105,11 @@ resource "tencentcloud_tcr_instance" "mytcr_instance" {
105
105
106
106
const testAccTCRInstance_basic_update_remark = `
107
107
resource "tencentcloud_tcr_instance" "mytcr_instance" {
108
- name = "testacctcrinstance2 "
108
+ name = "testacctcrinstance1 "
109
109
instance_type = "basic"
110
110
delete_bucket = true
111
111
open_public_operation = true
112
112
tags ={
113
- tf = "tf "
113
+ test = "test "
114
114
}
115
115
}`
0 commit comments