Petr Horáček has uploaded a new change for review. Change subject: networkTest: SetupNetworksEmergencyDevicesCleanup ......................................................................
networkTest: SetupNetworksEmergencyDevicesCleanup Test for devices-leftovers after ERR_FAILED_IFUP. Change-Id: I3ef7ab74a53a8c2bd49710c01771b623c41cbf88 Signed-off-by: Petr Horáček <[email protected]> --- M tests/functional/networkTests.py 1 file changed, 19 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/36/31336/1 diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py index 038dde2..d62c42b 100644 --- a/tests/functional/networkTests.py +++ b/tests/functional/networkTests.py @@ -2115,6 +2115,25 @@ # reporting success before knowing if dhclient succeeded. With blocking # it must not report success self.assertNotEqual(status, SUCCESS, msg) + self.assertBridgeDoesntExist(NETWORK_NAME) + + @permutations([[True], [False]]) + @cleanupNet + @RequireDummyMod + @ValidateRunningAsRoot + def testSetupNetworksEmergencyDevicesCleanup(self, bridged): + with dummyIf(1) as nics: + network = {NETWORK_NAME: {'vlan': VLAN_ID, 'bridged': bridged, + 'bonding': BONDING_NAME, + 'bootproto': 'dhcp', + 'blockingdhcp': True}} + bonding = {BONDING_NAME: {'nics': nics}} + status, msg = self.vdsm_net.setupNetworks(network, bonding, NOCHK) + self.assertNotEqual(status, SUCCESS, msg) + if bridged: + self.assertBridgeDoesntExist(NETWORK_NAME) + self.assertVlanDoesntExist(NETWORK_NAME + '.' + VLAN_ID) + self.assertBondDoesntExist(BONDING_NAME, nics) @cleanupNet @ValidateRunningAsRoot -- To view, visit http://gerrit.ovirt.org/31336 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I3ef7ab74a53a8c2bd49710c01771b623c41cbf88 Gerrit-PatchSet: 1 Gerrit-Project: vdsm Gerrit-Branch: master Gerrit-Owner: Petr Horáček <[email protected]> _______________________________________________ vdsm-patches mailing list [email protected] https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches
