From: stark, steven Date: Mon, 8 Apr 2019 19:37:29 +0000 (-0700) Subject: [VVP] updating v6 regex for fip/ip and fip/subnet X-Git-Tag: 5.0.0~48^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=commitdiff_plain;h=96f1a57785ffb99b523bb370a08c93f0ac395393 [VVP] updating v6 regex for fip/ip and fip/subnet Change-Id: Ia7acc252d6a1429ec0c73f720bb1308dd70178b5 Issue-ID: VVP-188 Signed-off-by: stark, steven --- 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 83dd5e3..4c62528 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 @@ -44,19 +44,19 @@ from .utils.ports import check_ip_format RE_EXTERNAL_PARAM_FIP = re.compile( # match pattern - r"(?P.+)_(?P.+[^(v6)])(_v6)?_ip_(?P.+)$" + r"(?P.+)_(?P.+?)(_v6)?_ip_(?P.+)$" ) RE_EXTERNAL_PARAM_FIPS = re.compile( # match pattern - r"(?P.+)_(?P.+[^(v6)])(_v6)?_ips$" + r"(?P.+)_(?P.+?)(_v6)?_ips$" ) RE_INTERNAL_PARAM_FIP = re.compile( # match pattern - r"(?P.+)_int_(?P.+[^(v6)])(_v6)?_ip_(?P.+)$" + r"(?P.+)_int_(?P.+?)(_v6)?_ip_(?P.+)$" ) RE_INTERNAL_PARAM_FIPS = re.compile( # match pattern - r"(?P.+)_int_(?P.+[^(v6)])(_v6)?_ips$" + r"(?P.+)_int_(?P.+?)(_v6)?_ips$" ) fip_regx_dict = { 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 857fbff..1df7aac 100644 --- a/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py +++ b/ice_validator/tests/test_neutron_port_fixed_ips_subnet.py @@ -73,11 +73,11 @@ from .utils.ports import check_ip_format VERSION = "1.3.0" RE_EXTERNAL_PARAM_SUBNET = re.compile( # match pattern - r"(?P.+[^(v6)])(_v6)?_subnet_id$" + r"(?P.+?)(_v6)?_subnet_id$" ) RE_INTERNAL_PARAM_SUBNET = re.compile( # match pattern - r"int_(?P.+[^(v6)])(_v6)?_subnet_id$" + r"int_(?P.+?)(_v6)?_subnet_id$" ) fip_regx_dict = {