[node-patches] Change in ovirt-node[master]: test: Mock Augeas

fabiand at fedoraproject.org fabiand at fedoraproject.org
Fri Jul 12 17:46:57 UTC 2013


Fabian Deutsch has uploaded a new change for review.

Change subject: test: Mock Augeas
......................................................................

test: Mock Augeas

Augeas can not be used, because it's ont using the FakeFs but trying to
act on the real filesystem.

Change-Id: I3be2dad2ed7b708691402d011c8e9a87b0791a1b
Signed-off-by: Fabian Deutsch <fabiand at fedoraproject.org>
---
M tests/nose/network_config.py
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-node refs/changes/78/16778/1

diff --git a/tests/nose/network_config.py b/tests/nose/network_config.py
index 265d62f..4cfae0c 100644
--- a/tests/nose/network_config.py
+++ b/tests/nose/network_config.py
@@ -20,7 +20,7 @@
 # also available at http://www.gnu.org/copyleft/gpl.html.
 from mock import patch
 from ovirt.node.config import defaults
-from ovirt.node.utils import fs
+from ovirt.node.utils import fs, AugeasWrapper
 from ovirt.node.utils.fs import ShellVarFile, FakeFs
 from ovirt.node.utils.network import UdevNICInfo, SysfsNICInfo, NodeNetwork, \
     BondedNIC, BridgedNIC, NIC, TaggedNIC
@@ -37,6 +37,7 @@
     @patch.object(UdevNICInfo, "vendor")
     @patch.object(UdevNICInfo, "devtype")
     @patch.object(SysfsNICInfo, "hwaddr", "th:em:ac:ad:dr")
+    @patch.object(AugeasWrapper, "_aug")
     class TestWrapperClass(cls):
         pass
     TestWrapperClass.__name__ = cls.__name__


-- 
To view, visit http://gerrit.ovirt.org/16778
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3be2dad2ed7b708691402d011c8e9a87b0791a1b
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-node
Gerrit-Branch: master
Gerrit-Owner: Fabian Deutsch <fabiand at fedoraproject.org>



More information about the node-patches mailing list