diff options
Diffstat (limited to 'ice_validator/tests/test_nova_servers_environment_context.py')
-rw-r--r-- | ice_validator/tests/test_nova_servers_environment_context.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ice_validator/tests/test_nova_servers_environment_context.py b/ice_validator/tests/test_nova_servers_environment_context.py index 95baa3a..0da97f2 100644 --- a/ice_validator/tests/test_nova_servers_environment_context.py +++ b/ice_validator/tests/test_nova_servers_environment_context.py @@ -49,7 +49,7 @@ VERSION = "1.0.0" @validates("R-20308") -def test_environment_context(heat_template): +def test_environment_context(yaml_file): """ A VNF's Heat Orchestration Template's OS::Nova::Server Resource **MUST** @@ -59,7 +59,7 @@ def test_environment_context(heat_template): metadata map value parameter 'environment_context' **MUST** be declared as type: 'string'. """ - with open(heat_template) as fh: + with open(yaml_file) as fh: yml = yaml.load(fh) if "parameters" not in yml: @@ -79,7 +79,7 @@ def test_environment_context(heat_template): continue error = validate_metadata(metadata, yml["parameters"]) if error: - assert False, '%s resource "%s" %s' % (heat_template, resource, error) + assert False, '%s resource "%s" %s' % (yaml_file, resource, error) def validate_metadata(metadata, parameters): |