diff options
6 files changed, 13 insertions, 0 deletions
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. |