@@ -208,14 +208,6 @@ def test_template_fragments_invalid_transform(template_fragment):
208
208
)
209
209
210
210
211
- def test_template_fragments_resource_without_type (template_fragment ):
212
- __assert_throws_validation_error (
213
- "resource_without_type_or_name.json" ,
214
- template_fragment ,
215
- "has neither Type nor Name" ,
216
- )
217
-
218
-
219
211
def test_template_fragments_macros (template_fragment ):
220
212
__assert_throws_validation_error (
221
213
"macros.yaml" , template_fragment , "can't contain any macro"
@@ -228,12 +220,6 @@ def test_template_fragments_nested_stack(template_fragment):
228
220
)
229
221
230
222
231
- def test_template_fragments_parameter_without_type (template_fragment ):
232
- __assert_throws_validation_error (
233
- "parameter_without_type.json" , template_fragment , "must have a Type"
234
- )
235
-
236
-
237
223
def test_template_fragments_transform (template_fragment ):
238
224
__assert_throws_validation_error (
239
225
"transform.json" , template_fragment , "can't contain transform section"
@@ -246,12 +232,6 @@ def test_template_fragments_transform_section(template_fragment):
246
232
)
247
233
248
234
249
- def test_template_fragments_without_resources (template_fragment ):
250
- __assert_throws_validation_error (
251
- "noresources.json" , template_fragment , "must have a Resources section"
252
- )
253
-
254
-
255
235
def test_template_fragments_with_json_syntax_error (template_fragment ):
256
236
__assert_throws_validation_error (
257
237
"syntax_error.json" , template_fragment , "line 15, column 24"
@@ -272,57 +252,6 @@ def test_template_fragments_with_sub_is_valid(template_fragment):
272
252
__assert_validation_throws_no_error ("ec2withsub.yaml" , template_fragment )
273
253
274
254
275
- def test_template_exceeding_resource_limit (template_fragment ):
276
- template_fragment .resource_limit = 2
277
- __assert_throws_validation_error (
278
- "fragment_three_resources.json" ,
279
- template_fragment ,
280
- "has 3 resources but must not exceed the limit of 2" ,
281
- )
282
-
283
-
284
- def test_template_exceeding_output_limit (template_fragment ):
285
- template_fragment .output_limit = 2
286
- __assert_throws_validation_error (
287
- "fragment_three_outputs.json" ,
288
- template_fragment ,
289
- "has 3 outputs but must not exceed the limit of 2" ,
290
- )
291
-
292
-
293
- def test_template_exceeding_mapping_limit (template_fragment ):
294
- template_fragment .mapping_limit = 2
295
- __assert_throws_validation_error (
296
- "fragment_three_mappings.json" ,
297
- template_fragment ,
298
- "has 3 mappings but must not exceed the limit of 2" ,
299
- )
300
-
301
-
302
- def test_template_exceeding_mapping_attribute_limit (template_fragment ):
303
- template_fragment .mapping_attribute_limit = 2
304
- __assert_throws_validation_error (
305
- "fragment_mapping_with_three_attributes.json" ,
306
- template_fragment ,
307
- "has 3 attributes but must not exceed the limit of 2" ,
308
- )
309
-
310
-
311
- def test_template_mappings_dont_exceed_any_limit (template_fragment ):
312
- __assert_validation_throws_no_error (
313
- "fragment_mapping_with_three_attributes.json" , template_fragment
314
- )
315
-
316
-
317
- def test_template_exceeding_file_size_limit (template_fragment ):
318
- template_fragment .template_file_size_in_bytes_limit = 300
319
- __assert_throws_validation_error (
320
- "sample.json" ,
321
- template_fragment ,
322
- "exceeds the CloudFormation Template size limit" ,
323
- )
324
-
325
-
326
255
def test_template_folder_with_multiple_fragment_files ():
327
256
template_fragment = TemplateFragment (
328
257
type_name ,
0 commit comments