mock cross_connect test added to test/core/integration.py
[nepi.git] / src / nepi / testbeds / planetlab / execute.py
index 38bea7b..32405f5 100644 (file)
@@ -3,6 +3,7 @@
 
 from constants import TESTBED_ID
 from nepi.core import testbed_impl
+from nepi.util.constants import TIME_NOW
 import os
 import time
 
@@ -108,8 +109,8 @@ class TestbedController(testbed_impl.TestbedController):
         # cleanup
         del self._to_provision
 
-    def set(self, time, guid, name, value):
-        super(TestbedController, self).set(time, guid, name, value)
+    def set(self, guid, name, value, time = TIME_NOW):
+        super(TestbedController, self).set(guid, name, value, time)
         # TODO: take on account schedule time for the task
         element = self._elements[guid]
         if element:
@@ -119,8 +120,8 @@ class TestbedController(testbed_impl.TestbedController):
                 # invoke attribute refresh hook
                 element.refresh()
 
-    def get(self, time, guid, name):
-        value = super(TestbedController, self).get(time, guid, name)
+    def get(self, guid, name, time = TIME_NOW):
+        value = super(TestbedController, self).get(guid, name, time)
         # TODO: take on account schedule time for the task
         factory_id = self._create[guid]
         factory = self._factories[factory_id]