diff options
author | stark, steven <ss820f@att.com> | 2018-09-13 16:49:43 -0700 |
---|---|---|
committer | stark, steven <ss820f@att.com> | 2018-09-13 17:21:45 -0700 |
commit | 31d5da59b39d38760cc519a2c5e5b70357b539e8 (patch) | |
tree | 7298d118aefb1e7494afa5cbedaa5e499b78373d /ice_validator/tests/test_required_parameters_specified_in_env_files.py | |
parent | 8de26dd1cc9ed33c3ab85a5014ac949f174db932 (diff) |
[VVP] udpating scripts for casablanca
adding new "infrastructure" scripts
addresses bugs VVP-100, VVP-101, VVP-102
adding base tests
updating tests where arguments have changed
Adds traceability for task VVP-92
Change-Id: I067d8e80934403039e66fbc9fc93766587f67b4e
Issue-ID: VVP-80
Signed-off-by: stark, steven <ss820f@att.com>
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.py | 11 |
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"]: |