Skip to content

Commit 5520e05

Browse files
PatMyronkddejong
authored andcommitted
removing no longer needed tests
1 parent 73df410 commit 5520e05

8 files changed

+0
-196
lines changed

tests/data/sample_fragments/fragment_mapping_with_three_attributes.json

Lines changed: 0 additions & 21 deletions
This file was deleted.

tests/data/sample_fragments/fragment_three_mappings.json

Lines changed: 0 additions & 25 deletions
This file was deleted.

tests/data/sample_fragments/fragment_three_outputs.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/data/sample_fragments/fragment_three_resources.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

tests/data/sample_fragments/noresources.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

tests/data/sample_fragments/parameter_without_type.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/data/sample_fragments/resource_without_type_or_name.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/fragments/test_generator.py

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -208,14 +208,6 @@ def test_template_fragments_invalid_transform(template_fragment):
208208
)
209209

210210

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-
219211
def test_template_fragments_macros(template_fragment):
220212
__assert_throws_validation_error(
221213
"macros.yaml", template_fragment, "can't contain any macro"
@@ -228,12 +220,6 @@ def test_template_fragments_nested_stack(template_fragment):
228220
)
229221

230222

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-
237223
def test_template_fragments_transform(template_fragment):
238224
__assert_throws_validation_error(
239225
"transform.json", template_fragment, "can't contain transform section"
@@ -246,12 +232,6 @@ def test_template_fragments_transform_section(template_fragment):
246232
)
247233

248234

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-
255235
def test_template_fragments_with_json_syntax_error(template_fragment):
256236
__assert_throws_validation_error(
257237
"syntax_error.json", template_fragment, "line 15, column 24"
@@ -272,57 +252,6 @@ def test_template_fragments_with_sub_is_valid(template_fragment):
272252
__assert_validation_throws_no_error("ec2withsub.yaml", template_fragment)
273253

274254

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-
326255
def test_template_folder_with_multiple_fragment_files():
327256
template_fragment = TemplateFragment(
328257
type_name,

0 commit comments

Comments
 (0)