Make unit tests pass
This commit is contained in:
@@ -666,7 +666,7 @@ class XenAPIVMTestCase(test.TestCase):
|
||||
self.flags(flat_injected=False)
|
||||
instance = self._create_instance()
|
||||
conn = xenapi_conn.get_connection(False)
|
||||
conn.rescue(instance, None, [])
|
||||
conn.rescue(self.context, instance, None, [])
|
||||
|
||||
def test_unrescue(self):
|
||||
instance = self._create_instance()
|
||||
|
||||
@@ -227,7 +227,7 @@ def stub_out_vm_methods(stubs):
|
||||
def fake_release_bootlock(self, vm):
|
||||
pass
|
||||
|
||||
def fake_spawn_rescue(self, inst):
|
||||
def fake_spawn_rescue(self, context, inst, network_info):
|
||||
inst._rescue = False
|
||||
|
||||
stubs.Set(vmops.VMOps, "_shutdown", fake_shutdown)
|
||||
|
||||
Reference in New Issue
Block a user