diff options
author | 2020-04-30 14:50:02 -0500 | |
---|---|---|
committer | 2020-04-30 14:50:02 -0500 | |
commit | 4b53cbbf12894610774b5e024cecb0d4e395aad3 (patch) | |
tree | 7522eaf8d208c1fcdd4dbbaec8ea993bd988139d /ice_validator/tests/test_heat_template_structure.py | |
parent | ba669ca219cf8bb9dc64deff9f22941be2fb4388 (diff) |
Enforce filename rules
Disallow characters other than alphanumerics and
underscores in Heat template file names
Change-Id: I097ad1830fdc10fb431daef6ec713d825ee8b42a
Issue-ID: VVP-415
Signed-off-by: Lovett, Trevor <trevor.lovett@att.com>
Diffstat (limited to 'ice_validator/tests/test_heat_template_structure.py')
-rw-r--r-- | ice_validator/tests/test_heat_template_structure.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/ice_validator/tests/test_heat_template_structure.py b/ice_validator/tests/test_heat_template_structure.py index 1b85dac..7157153 100644 --- a/ice_validator/tests/test_heat_template_structure.py +++ b/ice_validator/tests/test_heat_template_structure.py @@ -55,7 +55,9 @@ def test_heat_template_structure_contains_heat_template_version(yaml_file): Check that all heat templates have the required sections """ template = load_yaml(yaml_file) - assert "heat_template_version" in template, "This template must contain a heat_template_version section" + assert ( + "heat_template_version" in template + ), "This template must contain a heat_template_version section" @validates("R-39402") @@ -75,7 +77,9 @@ def test_heat_template_structure_contains_parameters(yaml_file): if is_base_module(yaml_file): pytest.skip("Not applicable to base modules") template = load_yaml(yaml_file) - assert "parameters" in template and len(template["parameters"].keys()), "This template must contain a parameters section" + assert "parameters" in template and len( + template["parameters"].keys() + ), "This template must contain a parameters section" @validates("R-23664") |