Ondřej Svoboda has uploaded a new change for review.

Change subject: tests: print all routes if _get_gateway couldn't report a 
gateway
......................................................................

tests: print all routes if _get_gateway couldn't report a gateway

Change-Id: I09ce006f2644e24674d3445a287008d5e1660a5d
Signed-off-by: Ondřej Svoboda <[email protected]>
---
M tests/functional/networkTests.py
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/80/42280/1

diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py
index f3dff3f..8056636 100644
--- a/tests/functional/networkTests.py
+++ b/tests/functional/networkTests.py
@@ -31,7 +31,7 @@
 from vdsm.ipwrapper import (routeExists, ruleExists, addrFlush, LinkType,
                             getLinks, routeShowTable)
 from vdsm.netinfo import (bridges, operstate, getRouteDeviceTo,
-                          _get_dhclient_ifaces, BONDING_SLAVES,
+                          _get_dhclient_ifaces, _get_routes, BONDING_SLAVES,
                           BONDING_MASTERS, NET_CONF_PREF)
 from vdsm.netlink import monitor
 from vdsm import sysctl
@@ -1677,6 +1677,8 @@
                 self.assertEqual(status, SUCCESS, msg)
                 self.assertNetworkExists(NETWORK_NAME)
                 test_net = self.vdsm_net.netinfo.networks[NETWORK_NAME]
+                # _get_gateway doesn't report a gateway if there are multiple
+                print(json.dumps(_get_routes(), indent=4))
                 if 4 in families:
                     self.assertEqual(IP_ADDRESS, test_net['addr'])
                     self.assertEqual(IP_MASK, test_net['netmask'])


-- 
To view, visit https://gerrit.ovirt.org/42280
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I09ce006f2644e24674d3445a287008d5e1660a5d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ondřej Svoboda <[email protected]>
_______________________________________________
vdsm-patches mailing list
[email protected]
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to