@@ -29,13 +29,21 @@ func TestAccTencentCloudTdmqRocketmqVipInstanceResource_basic(t *testing.T) {
29
29
Check : resource .ComposeTestCheckFunc (
30
30
testAccCheckTdmqRocketmqVipInstanceExists ("tencentcloud_tdmq_rocketmq_vip_instance.example" ),
31
31
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "id" ),
32
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "name" ),
33
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "spec" ),
34
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "node_count" ),
35
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "storage_size" ),
32
36
),
33
37
},
34
38
{
35
39
Config : testAccTdmqRocketmqVipInstanceUpdate ,
36
40
Check : resource .ComposeTestCheckFunc (
37
41
testAccCheckTdmqRocketmqVipInstanceExists ("tencentcloud_tdmq_rocketmq_vip_instance.example" ),
38
42
resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "id" ),
43
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "name" ),
44
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "spec" ),
45
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "node_count" ),
46
+ resource .TestCheckResourceAttrSet ("tencentcloud_tdmq_rocketmq_vip_instance.example" , "storage_size" ),
39
47
),
40
48
},
41
49
},
@@ -106,11 +114,16 @@ resource "tencentcloud_tdmq_rocketmq_vip_instance" "example" {
106
114
]
107
115
108
116
vpc_info {
109
- vpc_id = local.vpc_id
110
- subnet_id = local.subnet_id
117
+ vpc_id = local.vpc_id
118
+ subnet_id = local.subnet_id
111
119
}
112
120
113
121
time_span = 1
122
+ ip_rules {
123
+ ip_rule = "0.0.0.0/0"
124
+ allow = true
125
+ remark = "remark."
126
+ }
114
127
}
115
128
`
116
129
@@ -133,5 +146,10 @@ resource "tencentcloud_tdmq_rocketmq_vip_instance" "example" {
133
146
}
134
147
135
148
time_span = 1
149
+ ip_rules {
150
+ ip_rule = "0.0.0.0/0"
151
+ allow = true
152
+ remark = "remark."
153
+ }
136
154
}
137
155
`
0 commit comments