Change in vdsm[master]: test : delNetwork with bond accumulation.
gvallare at redhat.com
gvallare at redhat.com
Sun Aug 11 23:05:18 UTC 2013
Giuseppe Vallarelli has uploaded a new change for review.
Change subject: test : delNetwork with bond accumulation.
......................................................................
test : delNetwork with bond accumulation.
Added functional test covering behaviour of delNetwork
when creating and deleting a bond.
Change-Id: I12ebeeaff8949e6020dcfcaebaa94f3641b622d5
Signed-off-by: Giuseppe Vallarelli <gvallare at redhat.com>
---
M tests/functional/networkTests.py
1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/44/17944/1
diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py
index 9e35120..2bc1b30 100644
--- a/tests/functional/networkTests.py
+++ b/tests/functional/networkTests.py
@@ -393,3 +393,22 @@
nics=nics,
opts={'bridged': bridged})
self.assertEqual(status, neterrors.ERR_BAD_BRIDGE, msg)
+
+ @cleanupNet
+ @RequireDummyMod
+ @ValidateRunningAsRoot
+ def testDelNetworkBondAccumulation(self):
+ with dummyIf(1) as nics:
+ for bigBond in ('bond555', 'bond666', 'bond777'):
+ status, msg = self.vdsm_net.addNetwork(NETWORK_NAME, VLAN_ID,
+ bigBond, nics)
+
+ self.assertEqual(status, SUCCESS, msg)
+
+ self.assertTrue(self.vdsm_net.bondExists(bigBond, nics))
+
+ status, msg = self.vdsm_net.delNetwork(NETWORK_NAME)
+
+ self.assertEqual(status, SUCCESS, msg)
+
+ self.assertFalse(self.vdsm_net.bondExists(bigBond, nics))
--
To view, visit http://gerrit.ovirt.org/17944
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I12ebeeaff8949e6020dcfcaebaa94f3641b622d5
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Giuseppe Vallarelli <gvallare at redhat.com>
More information about the vdsm-patches
mailing list