@@ -130,7 +130,7 @@ func testAccSafetyRule_tags(t *testing.T) {
130
130
CheckDestroy : testAccCheckSafetyRuleDestroy (ctx ),
131
131
Steps : []resource.TestStep {
132
132
{
133
- Config : testAccSafetyRuleConfig_routingControl_tags1 (rName , "key1" , "value1" ),
133
+ Config : testAccSafetyRuleConfig_routingControl_tags1 (rName , acctest . CtKey1 , acctest . CtValue1 ),
134
134
Check : resource .ComposeTestCheckFunc (
135
135
testAccCheckSafetyRuleExists (ctx , resourceName ),
136
136
resource .TestCheckResourceAttr (resourceName , names .AttrName , rName ),
@@ -139,8 +139,8 @@ func testAccSafetyRule_tags(t *testing.T) {
139
139
resource .TestCheckResourceAttr (resourceName , "target_controls.#" , "1" ),
140
140
resource .TestCheckResourceAttr (resourceName , "gating_controls.#" , "1" ),
141
141
resource .TestCheckResourceAttrPair (resourceName , "control_panel_arn" , "aws_route53recoverycontrolconfig_control_panel.test" , names .AttrARN ),
142
- resource .TestCheckResourceAttr (resourceName , "tags.%" , "1" ),
143
- resource .TestCheckResourceAttr (resourceName , "tags.key1" , "value1" ),
142
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsPercent , "1" ),
143
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsKey1 , acctest . CtValue1 ),
144
144
),
145
145
},
146
146
{
@@ -149,7 +149,7 @@ func testAccSafetyRule_tags(t *testing.T) {
149
149
ImportStateVerify : true ,
150
150
},
151
151
{
152
- Config : testAccSafetyRuleConfig_routingControl_tags2 (rName , "key1" , "value1updated" , "key2" , "value2" ),
152
+ Config : testAccSafetyRuleConfig_routingControl_tags2 (rName , acctest . CtKey1 , acctest . CtValue1Updated , acctest . CtKey2 , acctest . CtValue2 ),
153
153
Check : resource .ComposeTestCheckFunc (
154
154
testAccCheckSafetyRuleExists (ctx , resourceName ),
155
155
resource .TestCheckResourceAttr (resourceName , names .AttrName , rName ),
@@ -158,13 +158,13 @@ func testAccSafetyRule_tags(t *testing.T) {
158
158
resource .TestCheckResourceAttr (resourceName , "target_controls.#" , "1" ),
159
159
resource .TestCheckResourceAttr (resourceName , "gating_controls.#" , "1" ),
160
160
resource .TestCheckResourceAttrPair (resourceName , "control_panel_arn" , "aws_route53recoverycontrolconfig_control_panel.test" , names .AttrARN ),
161
- resource .TestCheckResourceAttr (resourceName , "tags.%" , "2" ),
162
- resource .TestCheckResourceAttr (resourceName , "tags.key1" , "value1updated" ),
163
- resource .TestCheckResourceAttr (resourceName , "tags.key2" , "value2" ),
161
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsPercent , "2" ),
162
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsKey1 , acctest . CtValue1Updated ),
163
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsKey2 , acctest . CtValue2 ),
164
164
),
165
165
},
166
166
{
167
- Config : testAccSafetyRuleConfig_routingControl_tags1 (rName , "key2" , "value2" ),
167
+ Config : testAccSafetyRuleConfig_routingControl_tags1 (rName , acctest . CtKey2 , acctest . CtValue1Updated ),
168
168
Check : resource .ComposeTestCheckFunc (
169
169
testAccCheckSafetyRuleExists (ctx , resourceName ),
170
170
resource .TestCheckResourceAttr (resourceName , names .AttrName , rName ),
@@ -173,8 +173,8 @@ func testAccSafetyRule_tags(t *testing.T) {
173
173
resource .TestCheckResourceAttr (resourceName , "target_controls.#" , "1" ),
174
174
resource .TestCheckResourceAttr (resourceName , "gating_controls.#" , "1" ),
175
175
resource .TestCheckResourceAttrPair (resourceName , "control_panel_arn" , "aws_route53recoverycontrolconfig_control_panel.test" , names .AttrARN ),
176
- resource .TestCheckResourceAttr (resourceName , "tags.%" , "1" ),
177
- resource .TestCheckResourceAttr (resourceName , "tags.key2" , "value2" ),
176
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsPercent , "1" ),
177
+ resource .TestCheckResourceAttr (resourceName , acctest . CtTagsKey2 , acctest . CtValue2 ),
178
178
),
179
179
},
180
180
},
@@ -303,7 +303,7 @@ resource "aws_route53recoverycontrolconfig_routing_control" "test" {
303
303
cluster_arn = aws_route53recoverycontrolconfig_cluster.test.arn
304
304
control_panel_arn = aws_route53recoverycontrolconfig_control_panel.test.arn
305
305
}
306
-
306
+
307
307
resource "aws_route53recoverycontrolconfig_safety_rule" "test" {
308
308
name = %[1]q
309
309
control_panel_arn = aws_route53recoverycontrolconfig_control_panel.test.arn
@@ -316,7 +316,7 @@ resource "aws_route53recoverycontrolconfig_safety_rule" "test" {
316
316
threshold = 0
317
317
type = "AND"
318
318
}
319
- tags = {
319
+ tags = {
320
320
%[2]q = %[3]q
321
321
}
322
322
}
@@ -352,9 +352,9 @@ resource "aws_route53recoverycontrolconfig_safety_rule" "test" {
352
352
threshold = 0
353
353
type = "AND"
354
354
}
355
- tags = {
355
+ tags = {
356
356
%[2]q = %[3]q
357
- %[4]q = %[5]q
357
+ %[4]q = %[5]q
358
358
}
359
359
}
360
360
` , rName , tagKey1 , tagValue1 , tagKey2 , tagValue2 )
0 commit comments