From: stark, steven Date: Thu, 16 Jul 2020 15:04:19 +0000 (-0700) Subject: [VVP] Bug fix for test_port_resource_ids X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=3086303893ff6707213c4a1dc7d1435aea888c63;hp=-c;p=vvp%2Fvalidation-scripts.git [VVP] Bug fix for test_port_resource_ids Skip non-OS::Neutron::Port (i.e. contrail) Issue-ID: VVP-346 Signed-off-by: stark, steven Change-Id: Id3addcfe755c16be0fd3391779262232fb570def --- 3086303893ff6707213c4a1dc7d1435aea888c63 diff --git a/ice_validator/tests/test_port_resource_ids.py b/ice_validator/tests/test_port_resource_ids.py index d587743..be74349 100644 --- a/ice_validator/tests/test_port_resource_ids.py +++ b/ice_validator/tests/test_port_resource_ids.py @@ -109,6 +109,9 @@ def test_port_resource_ids(yaml_file): if property_uses_get_resource(v, "network"): continue + if port_resource.get("type", "") != "OS::Neutron::Port": + continue + network_role = get_network_role_from_port(port_resource) if not network_role: invalid_ports.append(