aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/test_heat_template_structure.py
diff options
context:
space:
mode:
authorSteven Wright <sw3588@att.com>2019-02-06 14:00:02 +0000
committerGerrit Code Review <gerrit@onap.org>2019-02-06 14:00:02 +0000
commitfeed1b900bfd975cfd8f382d290c9bb8901e9f49 (patch)
tree92d4425dc839e3070884ddea3df7a088a0a1ae03 /ice_validator/tests/test_heat_template_structure.py
parent8293575be685a477bb668af1368a489b0c86755e (diff)
parent815a65d91bb75131151526041efaef28b50a0b6b (diff)
Merge "[VVP] revert nested resource section"
Diffstat (limited to 'ice_validator/tests/test_heat_template_structure.py')
-rw-r--r--ice_validator/tests/test_heat_template_structure.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/ice_validator/tests/test_heat_template_structure.py b/ice_validator/tests/test_heat_template_structure.py
index a988aea..192f45a 100644
--- a/ice_validator/tests/test_heat_template_structure.py
+++ b/ice_validator/tests/test_heat_template_structure.py
@@ -97,18 +97,18 @@ def test_heat_template_structure_contains_parameters(yaml_file):
@validates("R-23664")
-def test_heat_template_structure_contains_resources(yaml_file):
+def test_heat_template_structure_contains_resources(heat_template):
"""
Check that all heat templates have the required sections
"""
required_key_values = ["resources"]
- with open(yaml_file) as fh:
+ with open(heat_template) as fh:
yml = yaml.load(fh)
assert all(
[k in yml for k in required_key_values]
), "{} doesn't contain the {} section, but it is required".format(
- yaml_file, required_key_values[0]
+ heat_template, required_key_values[0]
)