Remove the unit test 'test_ports_vnic_type_list'

This test created three ports and tried to list and filter those
ports by their vnic type. However, the current implementation
doesn't support filter by vnic type. The test passed is a false
positive because neutron ignored the invalid filter and returned
all the ports which happened to be those three ports.

This patch remove this invalid test case.

Change-Id: I4397df1c35463a8b532afdc9c5d28b37224a37b4
Related-Bug: #1749820
changes/67/575767/1
Hongbin Lu 4 years ago
parent 100491cec7
commit 9f6a4ceecf
  1. 15
      neutron/tests/unit/_test_extension_portbindings.py

@ -345,18 +345,3 @@ class PortBindingsVnicTestCaseMixin(object):
self.assertEqual(2, len(ports))
for non_admin_port in ports:
self._check_response_portbindings_vnic_type(non_admin_port)
def test_ports_vnic_type_list(self):
cfg.CONF.set_default('allow_overlapping_ips', True)
vnic_arg = {portbindings.VNIC_TYPE: self.vnic_type}
with self.port(name='name1',
arg_list=(portbindings.VNIC_TYPE,),
**vnic_arg) as port1,\
self.port(name='name2') as port2,\
self.port(name='name3',
arg_list=(portbindings.VNIC_TYPE,),
**vnic_arg) as port3:
self._test_list_resources(
'port', (port1, port2, port3),
query_params='%s=%s' % (portbindings.VNIC_TYPE,
self.vnic_type))

Loading…
Cancel
Save