Skip to content

Commit

Permalink
DON'T MERGE: Debug TestMachinesNetworks.testNetworkState on fedora-ra…
Browse files Browse the repository at this point in the history
…whide
  • Loading branch information
skobyda committed Oct 16, 2023
1 parent 41dc9be commit ef2d49c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/libvirtApi/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export function networkGet({
props.name = resultProps[0].Name.v.v;
props.id = objPath;
props.connectionName = connectionName;
console.log(JSON.stringify(props));

return call(connectionName, objPath, 'org.libvirt.Network', 'GetXMLDesc', [0], { timeout, type: 'u' });
})
Expand Down
3 changes: 3 additions & 0 deletions test/check-machines-networks
Original file line number Diff line number Diff line change
Expand Up @@ -757,8 +757,11 @@ class TestMachinesNetworks(VirtualMachinesCase):

# activate network
b.wait_visible(f"#activate-network-test_network2-{connectionName}")
print(m.execute("virsh net-dumpxml test_network2"))
print(m.execute("virsh net-info test_network2"))
b.click(f"#activate-network-test_network2-{connectionName}")
b.wait_in_text(f"#network-test_network2-{connectionName}-state", "active")
print(m.execute("virsh net-info test_network2"))
# check virsh state
wait(lambda: "yes" == m.execute("virsh net-info test_network2 | grep 'Active:' | awk '{print $2}'").strip(), tries=5)

Expand Down

0 comments on commit ef2d49c

Please sign in to comment.