[VVP] decorator [5.2.5.1 5.2.5.6) of VNFRTQS 01/57401/1
authorstark, steven <ss820f@att.com>
Tue, 24 Jul 2018 23:50:41 +0000 (16:50 -0700)
committerstark, steven <ss820f@att.com>
Tue, 24 Jul 2018 23:52:36 +0000 (16:52 -0700)
Change-Id: I2867bdcb2f86410e1c047d90e156471f84baf422
Issue-ID: VVP-92
Signed-off-by: stark, steven <ss820f@att.com>
ice_validator/tests/test_availability_zone.py
ice_validator/tests/test_nova_servers_correct_parameter_types.py
ice_validator/tests/test_nova_servers_vm_types.py
ice_validator/tests/test_required_parameters_no_constraints.py
ice_validator/tests/test_servers_have_required_metadata.py
ice_validator/tests/test_unique_name_resources.py

index 6ff11c8..77f1c56 100644 (file)
 #
 # 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
index 7b67682..a71ee4a 100644 (file)
 # 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
index 1b61c27..9511ecd 100644 (file)
 #
 # 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
index a63f41b..247eab6 100644 (file)
 #
 # 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
index 82c85e5..9d10fc9 100644 (file)
 #
 # 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:
index c154c28..a89dd1d 100644 (file)
 #
 # 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.