From 503041fb7ec395fe57e418d584c4a5d06f4c9877 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Mon, 13 May 2019 14:41:55 -0700 Subject: [VVP] Adding tests for new reqs from VNFRQTS-630 Added tests for reqs: R-100010, R-100030, R-100050, R-100070, R-100090, R-100110, R-100130, R-100150, R-100200, R-100220, R-100240, R-100310, R-100330, R-100360, R-100370, R-100260, R-100000, R-100190, R-100350 Updated neutron param tests to re-use validation code for contrail tests Change-Id: I84af725ca9de176dc690fffda01ffcad453213ea Issue-ID: VVP-211 Signed-off-by: stark, steven --- .../tests/test_neutron_port_fixed_ips_subnet.py | 32 +++------------------- 1 file changed, 4 insertions(+), 28 deletions(-) (limited to 'ice_validator/tests/test_neutron_port_fixed_ips_subnet.py') diff --git a/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py b/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py index 1df7aac..a07225b 100644 --- a/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py +++ b/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py @@ -36,31 +36,6 @@ # ============LICENSE_END============================================ # # - -""" -resources: -{vm-type}_{vm-type_index}_{network-role}_port_{port-index}: - type: OS::Neutron::Port - properties: - network: { get_param: ...} - fixed_ips: [ { "ipaddress": { get_param: ... } } ] - binding:vnic_type: direct #only SR-IOV ports, not OVS ports - value_specs: { - vlan_filter: { get_param: ... }, #all NC ports - public_vlans: { get_param: ... }, #all NC ports - private_vlans: { get_param: ... },#all NC ports - guest_vlans: { get_param: ... }, #SR-IOV Trunk Port only - vlan_mirror: { get_param: ... }, #SRIOV Trunk Port - # Receiving Mirrored Traffic only - ATT_FABRIC_CONFIGURATION_REQUIRED: true #all NC ports - } - metadata: - port_type: SR-IOV_Trunk #SR-IOV Trunk Port - port_type: SR-IOV_Non_Trunk #SR-IOV Non Trunk Port - port_type: OVS #OVS Port - port_type: SR-IOV_Mirrored_Trunk #SR-IOV Trunk Port - # Receiving Mirrored Traffic -""" import re from tests.utils.network_roles import get_network_type_from_port @@ -68,7 +43,8 @@ from tests.parametrizers import get_nested_files from .structures import Heat from .helpers import validates, load_yaml, get_base_template_from_yaml_files -from .utils.ports import check_ip_format +from .utils.ports import check_parameter_format +from tests.structures import NeutronPortProcessor VERSION = "1.3.0" @@ -99,12 +75,12 @@ fip_regx_dict = { @validates("R-38236", "R-84123", "R-76160") def test_internal_subnet_format(yaml_file): - check_ip_format(yaml_file, fip_regx_dict, "internal", "fixed_ips", "subnet") + check_parameter_format(yaml_file, fip_regx_dict, "internal", NeutronPortProcessor, "fixed_ips", "subnet") @validates("R-38236", "R-62802", "R-15287") def test_external_subnet_format(yaml_file): - check_ip_format(yaml_file, fip_regx_dict, "external", "fixed_ips", "subnet") + check_parameter_format(yaml_file, fip_regx_dict, "external", NeutronPortProcessor, "fixed_ips", "subnet") @validates("R-84123", "R-76160") -- cgit 1.2.3-korg