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:
Roman Safronov 2021-07-15 11:58:53 +03:00
parent f1538649f8
commit 01d3a08f15
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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'])