File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
tests/qualityflow/CNV-72329 Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change 88import logging
99
1010import pytest
11+ from ocp_resources .resource import ResourceEditor
1112
1213from libs .net .vmspec import lookup_iface_status_ip
13- from ocp_resources .resource import ResourceEditor
1414from utilities .constants import LINUX_BRIDGE
1515from utilities .network import network_nad
1616from utilities .virt import VirtualMachineForTests , fedora_vm_body
Original file line number Diff line number Diff line change 88import logging
99
1010import pytest
11+ from ocp_resources .virtual_machine_instance import VirtualMachineInstance
1112
13+ from conftest import patch_vm_nad_reference
1214from libs .net .vmspec import lookup_iface_status , lookup_iface_status_ip
13- from ocp_resources .virtual_machine_instance import VirtualMachineInstance
1415from tests .network .l2_bridge .libl2bridge import hot_plug_interface
1516from utilities .constants import TIMEOUT_2MIN , TIMEOUT_5MIN
1617from utilities .network import assert_ping_successful , is_destination_pingable_from_vm
1718
18- from conftest import patch_vm_nad_reference
19-
2019LOGGER = logging .getLogger (__name__ )
2120
2221pytestmark = pytest .mark .usefixtures ("namespace" )
@@ -177,9 +176,7 @@ def test_hotplug_then_nad_change(
177176 iface_name = hotplug_nad_scope_class .name ,
178177 ip_family = 4 ,
179178 )
180- assert hotplug_ip , (
181- f"Hotplugged interface { HOT_PLUG_IFACE_NAME } should report a valid IP"
182- )
179+ assert hotplug_ip , f"Hotplugged interface { HOT_PLUG_IFACE_NAME } should report a valid IP"
183180
184181 LOGGER .info ("Patching VM spec to change NAD reference from nad1 to nad2" )
185182 patch_vm_nad_reference (
@@ -201,6 +198,4 @@ def test_hotplug_then_nad_change(
201198 iface_name = nad2_scope_class .name ,
202199 ip_family = 4 ,
203200 )
204- assert nad2_ip , (
205- "Original secondary interface should have IP on nad2 after NAD change"
206- )
201+ assert nad2_ip , "Original secondary interface should have IP on nad2 after NAD change"
You can’t perform that action at this time.
0 commit comments