Change in vdsm[master]: fixed TestConfigNetwork.testAddNetworkValidation
ibarkan at redhat.com
ibarkan at redhat.com
Tue Dec 2 07:35:07 UTC 2014
Ido Barkan has uploaded a new change for review.
Change subject: fixed TestConfigNetwork.testAddNetworkValidation
......................................................................
fixed TestConfigNetwork.testAddNetworkValidation
Change-Id: Ieebd1c90577c37c3245d09936b44e1bc2fab520d
Signed-off-by: ibarkan <ibarkan at redhat.com>
---
M tests/configNetworkTests.py
1 file changed, 4 insertions(+), 3 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/77/35777/1
diff --git a/tests/configNetworkTests.py b/tests/configNetworkTests.py
index 5241f91..46d11bb 100644
--- a/tests/configNetworkTests.py
+++ b/tests/configNetworkTests.py
@@ -25,7 +25,8 @@
from testlib import VdsmTestCase as TestCaseBase
from monkeypatch import MonkeyPatch
-from network import api, configurators
+from network import api
+from network.configurators import ifcfg
from network import errors
from network.models import Bond, Bridge, Nic, Vlan
@@ -51,9 +52,9 @@
@MonkeyPatch(netinfo, 'networks', _fakeNetworks)
@MonkeyPatch(netinfo, 'getMaxMtu', lambda *x: 1500)
@MonkeyPatch(netinfo, 'getMtu', lambda *x: 1500)
- @MonkeyPatch(configurators.ifcfg, 'ifdown', lambda *x:
+ @MonkeyPatch(ifcfg, 'ifdown', lambda *x:
_raiseInvalidOpException())
- @MonkeyPatch(configurators.ifcfg, 'ifup',
+ @MonkeyPatch(ifcfg, 'ifup',
lambda *x: _raiseInvalidOpException())
@MonkeyPatch(Bond, 'configure', lambda *x: _raiseInvalidOpException())
@MonkeyPatch(Bridge, 'configure', lambda *x: _raiseInvalidOpException())
--
To view, visit http://gerrit.ovirt.org/35777
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieebd1c90577c37c3245d09936b44e1bc2fab520d
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Ido Barkan <ibarkan at redhat.com>
More information about the vdsm-patches
mailing list