Fix test_ovs_objects_are_absent_on_node test
There were found 2 issues that cause the test to return wrong results: 1. Ip list_interfaces command had a typo and was returning only one interface rather than a list. 2. Some ovs-specific interfaces were not checked. Change-Id: I4852d936c01b9cef50ce724dcf2047cdc1695dd1
This commit is contained in:
parent
f1538649f8
commit
01d3a08f15
|
@ -280,7 +280,7 @@ def test_ovs_namespaces_are_absent():
|
|||
|
||||
|
||||
def test_ovs_interfaces_are_absent():
|
||||
ovs_specific_interfaces = ['qvo', 'qvb', 'qbr']
|
||||
ovs_specific_interfaces = ['qvo', 'qvb', 'qbr', 'qr', 'qg', 'fg', 'sg']
|
||||
for node in topology.list_openstack_nodes():
|
||||
if node.name.startswith('undercloud'):
|
||||
continue
|
||||
|
|
|
@ -99,7 +99,7 @@ def list_network_interfaces(**execute_params):
|
|||
fields = line.strip().split()
|
||||
interface = fields[0]
|
||||
interfaces.append(interface)
|
||||
return interface
|
||||
return interfaces
|
||||
|
||||
|
||||
IP_COMMAND = sh.shell_command(['/sbin/ip'])
|
||||
|
|
Loading…
Reference in New Issue