From 6985dd5e75118aed4ff07c88de11c8c9cd5c72cb Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Thu, 26 Jul 2018 14:36:37 -0700 Subject: [PATCH] [VVP] add decorators for heat 5.2.5.6 Change-Id: I422fad86438380092254e46e3940f32fe6dc732f Issue-ID: VVP-92 Signed-off-by: stark, steven --- .../test_allowed_address_pairs_include_vm_type_network_role.py | 3 +++ .../tests/test_fixed_ips_include_vm_type_network_role.py | 9 +++++++++ ice_validator/tests/test_network_format.py | 2 ++ 3 files changed, 14 insertions(+) diff --git a/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py b/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py index 1841a4f..d4fdb36 100644 --- a/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py +++ b/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py @@ -37,12 +37,15 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import pytest import yaml from .utils.ports import get_invalid_ip_addresses +@validates('R-41492', + 'R-35735') def test_allowed_address_pairs_include_vm_type_network_role(heat_template): ''' Check that all allowed_address_pairs include the {vm_type} of the diff --git a/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py b/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py index bcb4486..85c0a4d 100644 --- a/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py +++ b/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py @@ -37,12 +37,21 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import pytest import yaml from .utils.ports import get_invalid_ip_addresses +@validates('R-40971', + 'R-27818', + 'R-29765', + 'R-85235', + 'R-78380', + 'R-23503', + 'R-71577', + 'R-04697') def test_fixed_ips_include_vm_type_network_role(heat_template): ''' Check that all fixed_ips ip addresses include the {vm_type} of the diff --git a/ice_validator/tests/test_network_format.py b/ice_validator/tests/test_network_format.py index 17d000c..651267e 100644 --- a/ice_validator/tests/test_network_format.py +++ b/ice_validator/tests/test_network_format.py @@ -37,6 +37,7 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from .helpers import validates import pytest import yaml @@ -44,6 +45,7 @@ from .utils.network_roles import get_network_role_from_port,\ property_uses_get_resource +@validates('R-62983', 'R-86182') def test_network_format(heat_template): ''' Make sure all network properties use the allowed naming -- 2.16.6