From 0feaec6790274f87c2d35a039676a3b1c2702a4d Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Tue, 24 Jul 2018 16:50:41 -0700 Subject: [PATCH] [VVP] decorator [5.2.5.1 5.2.5.6) of VNFRTQS Change-Id: I2867bdcb2f86410e1c047d90e156471f84baf422 Issue-ID: VVP-92 Signed-off-by: stark, steven --- ice_validator/tests/test_availability_zone.py | 2 ++ ice_validator/tests/test_nova_servers_correct_parameter_types.py | 3 +++ ice_validator/tests/test_nova_servers_vm_types.py | 2 ++ ice_validator/tests/test_required_parameters_no_constraints.py | 2 ++ ice_validator/tests/test_servers_have_required_metadata.py | 2 ++ ice_validator/tests/test_unique_name_resources.py | 2 ++ 6 files changed, 13 insertions(+) diff --git a/ice_validator/tests/test_availability_zone.py b/ice_validator/tests/test_availability_zone.py index 6ff11c8..77f1c56 100644 --- a/ice_validator/tests/test_availability_zone.py +++ b/ice_validator/tests/test_availability_zone.py @@ -37,12 +37,14 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import pytest import yaml import re +@validates('R-98450') def test_availability_zone_naming(heat_template): ''' Make sure all availability zones are properly formatted diff --git a/ice_validator/tests/test_nova_servers_correct_parameter_types.py b/ice_validator/tests/test_nova_servers_correct_parameter_types.py index 7b67682..a71ee4a 100644 --- a/ice_validator/tests/test_nova_servers_correct_parameter_types.py +++ b/ice_validator/tests/test_nova_servers_correct_parameter_types.py @@ -38,11 +38,14 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates + import pytest import yaml import re +@validates('R-71152', 'R-50436') def test_nova_servers_correct_parameter_types(heat_template): ''' Make sure all nova servers have properly assigned types for the parameters diff --git a/ice_validator/tests/test_nova_servers_vm_types.py b/ice_validator/tests/test_nova_servers_vm_types.py index 1b61c27..9511ecd 100644 --- a/ice_validator/tests/test_nova_servers_vm_types.py +++ b/ice_validator/tests/test_nova_servers_vm_types.py @@ -37,12 +37,14 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import pytest import yaml from .utils.vm_types import get_vm_types_for_resource +@validates('R-57282', 'R-40499') def test_vm_type_consistent_on_nova_servers(heat_template): ''' Make sure all nova servers have properly formatted properties diff --git a/ice_validator/tests/test_required_parameters_no_constraints.py b/ice_validator/tests/test_required_parameters_no_constraints.py index a63f41b..247eab6 100644 --- a/ice_validator/tests/test_required_parameters_no_constraints.py +++ b/ice_validator/tests/test_required_parameters_no_constraints.py @@ -37,11 +37,13 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import pytest import yaml +@validates('R-55218', 'R-98374', 'R-44318') def test_required_parameters_no_constraints(yaml_file): ''' Make sure all required parameters are specified without any diff --git a/ice_validator/tests/test_servers_have_required_metadata.py b/ice_validator/tests/test_servers_have_required_metadata.py index 82c85e5..9d10fc9 100644 --- a/ice_validator/tests/test_servers_have_required_metadata.py +++ b/ice_validator/tests/test_servers_have_required_metadata.py @@ -37,11 +37,13 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import yaml import pytest +@validates('R-37437', 'R-71493', 'R-72483') def test_servers_have_required_metadata(yaml_file): ''' Check all defined nova server instances have the required metadata: diff --git a/ice_validator/tests/test_unique_name_resources.py b/ice_validator/tests/test_unique_name_resources.py index c154c28..a89dd1d 100644 --- a/ice_validator/tests/test_unique_name_resources.py +++ b/ice_validator/tests/test_unique_name_resources.py @@ -37,11 +37,13 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import yaml import pytest +@validates('R-40899') def test_unique_name_resources(yaml_files): ''' Check that all resource names are unique across all yaml files. -- 2.16.6