diff options
author | stark, steven <steven.stark@att.com> | 2019-02-04 16:20:15 -0800 |
---|---|---|
committer | stark, steven <steven.stark@att.com> | 2019-02-04 16:37:13 -0800 |
commit | 10535815da964c683e5f91030934652bfb3f53b8 (patch) | |
tree | 129390448c758b104b677a4c89e2aac89ecdfd73 /ice_validator/tests/test_nova_servers_environment_context.py | |
parent | 912ea4cdf9721f66339c47bbfdcf4315ca7bd424 (diff) |
[VVP] enhance tests for nested templates
Change-Id: I17047fa3df555fafcdae566fad50b8c19ddca16f
Issue-ID: VVP-158
Signed-off-by: stark, steven <steven.stark@att.com>
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): |