From 815a65d91bb75131151526041efaef28b50a0b6b Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Tue, 5 Feb 2019 10:40:55 -0800 Subject: [VVP] revert nested resource section - R-40551 specifies nested templates MAY or MAY NOT contain a resource section - remove check for get_param in allowed_address_pairs, no requirement states get_param MUST be used Change-Id: If133b4ec4d39c25a95c77482b1743562e2ae74a8 Issue-ID: VVP-158 Signed-off-by: stark, steven --- ice_validator/tests/test_heat_template_structure.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ice_validator/tests/test_heat_template_structure.py') 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] ) -- cgit 1.2.3-korg