Change in vdsm[master]: network tests: remove bonds after use

osvoboda at redhat.com osvoboda at redhat.com
Tue Mar 22 15:29:12 UTC 2016


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

Change subject: network tests: remove bonds after use
......................................................................

network tests: remove bonds after use

Change-Id: Ic1dc00ce35acf57726725956c5d2f83e20b2122c
Signed-off-by: Ondřej Svoboda <osvoboda at redhat.com>
---
M tests/functional/networkTests.py
1 file changed, 10 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/78/55078/1

diff --git a/tests/functional/networkTests.py b/tests/functional/networkTests.py
index 0d20c28..fa648c6 100644
--- a/tests/functional/networkTests.py
+++ b/tests/functional/networkTests.py
@@ -2847,6 +2847,16 @@
             self.assertBondExists('bond0', nics1)
             self.assertBondExists('bond1', nics0)
 
+            # cleanup
+            bondings = {
+                'bond0': {'remove': True}
+                'bond1': {'remove': True},
+            }
+            status, msg = self.setupNetworks({}, bondings, NOCHK)
+            self.assertEqual(status, SUCCESS, msg)
+            self.assertBondDoesntExist('bond0')
+            self.assertBondDoesntExist('bond1')
+
     @contextmanager
     def setup_bonds_with_veth_pair(self, bond_options):
         with veth_pair() as (n1, n2), veth_pair() as (n3, n4):


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic1dc00ce35acf57726725956c5d2f83e20b2122c
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ondřej Svoboda <osvoboda at redhat.com>


More information about the vdsm-patches mailing list