aboutsummaryrefslogtreecommitdiffstats
path: root/ice_validator/tests/test_required_parameters_specified_in_env_files.py
diff options
context:
space:
mode:
Diffstat (limited to 'ice_validator/tests/test_required_parameters_specified_in_env_files.py')
-rw-r--r--ice_validator/tests/test_required_parameters_specified_in_env_files.py11
1 files changed, 9 insertions, 2 deletions
diff --git a/ice_validator/tests/test_required_parameters_specified_in_env_files.py b/ice_validator/tests/test_required_parameters_specified_in_env_files.py
index 15894c3..63b890c 100644
--- a/ice_validator/tests/test_required_parameters_specified_in_env_files.py
+++ b/ice_validator/tests/test_required_parameters_specified_in_env_files.py
@@ -2,7 +2,7 @@
# ============LICENSE_START=======================================================
# org.onap.vvp/validation-scripts
# ===================================================================
-# Copyright © 2018 AT&T Intellectual Property. All rights reserved.
+# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
# ===================================================================
#
# Unless otherwise specified, all software contained herein is licensed
@@ -40,13 +40,20 @@
import pytest
+from .helpers import get_environment_pair
-def test_required_parameters_provided_in_env_file(environment_pair):
+
+@pytest.mark.heat_only
+def test_required_parameters_provided_in_env_file(heat_template):
'''
Make sure all required parameters are specified properly
in the environment file if a server is defined in the
corresponding heat template
'''
+ environment_pair = get_environment_pair(heat_template)
+ if not environment_pair:
+ pytest.skip("No heat/env pair could be identified")
+
required_parameters = ["vnf_id", "vf_module_id", "vnf_name"]
if "resources" not in environment_pair["yyml"]: