X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=blobdiff_plain;f=ice_validator%2Ftests%2Ftest_heat_template_structure.py;h=1b85dac049208874bf8e647a9f1efa99b86de7b8;hp=3b69fafa5cb38cfba533afd73259c3d526646d4a;hb=ba669ca219cf8bb9dc64deff9f22941be2fb4388;hpb=5a9ec733d574ae7d2cd40e01e67d0e1791b7a804 diff --git a/ice_validator/tests/test_heat_template_structure.py b/ice_validator/tests/test_heat_template_structure.py index 3b69faf..1b85dac 100644 --- a/ice_validator/tests/test_heat_template_structure.py +++ b/ice_validator/tests/test_heat_template_structure.py @@ -68,14 +68,14 @@ def test_heat_template_structure_contains_description(yaml_file): @validates("R-35414") -def test_heat_template_structure_contains_parameters(heat_template): +def test_heat_template_structure_contains_parameters(yaml_file): """ Check that all heat templates have the required sections """ - if is_base_module(heat_template): + if is_base_module(yaml_file): pytest.skip("Not applicable to base modules") - template = load_yaml(heat_template) - assert "parameters" in template, "This template must contain a parameters section" + template = load_yaml(yaml_file) + assert "parameters" in template and len(template["parameters"].keys()), "This template must contain a parameters section" @validates("R-23664")