X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ice_validator%2Ftests%2Ftest_required_parameters_specified_in_env_files.py;h=63b890c13ed7a5b74c14090410442935bc5cdd81;hb=31d5da59b39d38760cc519a2c5e5b70357b539e8;hp=15894c3005c3da95b32aa3199fd31c88b27dbf46;hpb=8de26dd1cc9ed33c3ab85a5014ac949f174db932;p=vvp%2Fvalidation-scripts.git 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"]: