@@ -118,11 +118,11 @@ def template():
118
118
"Resource" : [{"Ref" : "LogGroup" }],
119
119
},
120
120
[
121
- ValidationError (
122
- "action 'cloudformation:CreateStackSet' requires a resource of '*'" ,
123
- rule = StatementResources (),
124
- path = deque (["Resource" ]),
125
- ),
121
+ # ValidationError(
122
+ # "action 'cloudformation:CreateStackSet' requires a resource of '*'", # noqa: E501
123
+ # rule=StatementResources(),
124
+ # path=deque(["Resource"]),
125
+ # ),
126
126
],
127
127
),
128
128
(
@@ -131,11 +131,11 @@ def template():
131
131
"Resource" : [{"Foo" : "Bar" }],
132
132
},
133
133
[
134
- ValidationError (
135
- "action 'cloudformation:CreateStackSet' requires a resource of '*'" ,
136
- rule = StatementResources (),
137
- path = deque (["Resource" ]),
138
- ),
134
+ # ValidationError(
135
+ # "action 'cloudformation:CreateStackSet' requires a resource of '*'", # noqa: E501
136
+ # rule=StatementResources(),
137
+ # path=deque(["Resource"]),
138
+ # ),
139
139
],
140
140
),
141
141
(
@@ -144,11 +144,11 @@ def template():
144
144
"Resource" : ["arn:aws:cloudformation:us-east-1:123456789012:*" ],
145
145
},
146
146
[
147
- ValidationError (
148
- "action 'cloudformation:CreateStackSet' requires a resource of '*'" ,
149
- rule = StatementResources (),
150
- path = deque (["Resource" ]),
151
- ),
147
+ # ValidationError(
148
+ # "action 'cloudformation:CreateStackSet' requires a resource of '*'", # noqa: E501
149
+ # rule=StatementResources(),
150
+ # path=deque(["Resource"]),
151
+ # ),
152
152
],
153
153
),
154
154
(
@@ -160,11 +160,11 @@ def template():
160
160
"Resource" : ["arn:aws:cloudformation:us-east-1:123456789012:*" ],
161
161
},
162
162
[
163
- ValidationError (
164
- "action 'cloudformation:CreateStackSet' requires a resource of '*'" ,
165
- rule = StatementResources (),
166
- path = deque (["Resource" ]),
167
- ),
163
+ # ValidationError(
164
+ # "action 'cloudformation:CreateStackSet' requires a resource of '*'", # noqa: E501
165
+ # rule=StatementResources(),
166
+ # path=deque(["Resource"]),
167
+ # ),
168
168
],
169
169
),
170
170
(
@@ -173,11 +173,11 @@ def template():
173
173
"Resource" : ["arn:aws:cloudformation:us-east-1:123456789012:*" ],
174
174
},
175
175
[
176
- ValidationError (
177
- "action 'cloudformation:CreateStackSet' requires a resource of '*'" ,
178
- rule = StatementResources (),
179
- path = deque (["Resource" ]),
180
- ),
176
+ # ValidationError(
177
+ # "action 'cloudformation:CreateStackSet' requires a resource of '*'", # noqa: E501
178
+ # rule=StatementResources(),
179
+ # path=deque(["Resource"]),
180
+ # ),
181
181
],
182
182
),
183
183
(
@@ -196,11 +196,11 @@ def template():
196
196
"Resource" : ["arn:aws:cloudformation:*:*:stack/*" ],
197
197
},
198
198
[
199
- ValidationError (
200
- "action 'cloudformation:CreateStackSet' requires a resource of '*'" ,
201
- rule = StatementResources (),
202
- path = deque (["Resource" ]),
203
- ),
199
+ # ValidationError(
200
+ # "action 'cloudformation:CreateStackSet' requires a resource of '*'", # noqa: E501
201
+ # rule=StatementResources(),
202
+ # path=deque(["Resource"]),
203
+ # ),
204
204
],
205
205
),
206
206
(
@@ -335,21 +335,18 @@ def template():
335
335
"Resource" : {"Fn::GetAtt" : "LogGroup.Arn" },
336
336
},
337
337
[
338
- ValidationError (
339
- "action 'logs:DescribeLogGroups' requires a resource of '*'" ,
340
- rule = StatementResources (),
341
- path = deque (["Resource" ]),
342
- ),
338
+ # ValidationError(
339
+ # "action 'logs:DescribeLogGroups' requires a resource of '*'", # noqa: E501
340
+ # rule=StatementResources(),
341
+ # path=deque(["Resource"]),
342
+ # ),
343
343
],
344
344
),
345
345
],
346
346
)
347
347
def test_rule (instance , expected , rule , validator ):
348
348
errors = list (rule .validate (validator , {}, instance , {}))
349
349
350
- for err in errors :
351
- print (err .message )
352
- print (err .path )
353
350
assert errors == expected , f"Got { errors !r} "
354
351
355
352
0 commit comments