From 10535815da964c683e5f91030934652bfb3f53b8 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Mon, 4 Feb 2019 16:20:15 -0800 Subject: [VVP] enhance tests for nested templates Change-Id: I17047fa3df555fafcdae566fad50b8c19ddca16f Issue-ID: VVP-158 Signed-off-by: stark, steven --- ice_validator/tests/test_nova_servers_environment_context.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ice_validator/tests/test_nova_servers_environment_context.py') 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): -- cgit 1.2.3-korg