Remove hack for xenapi driver tests

Various changes since the hack was introduced make removing it much
easier now.

Change-Id: I3237e94e034a1a1011ce4e4307ace8ea2e6432f0
This commit is contained in:
Johannes Erdfelt
2012-05-01 04:10:15 +00:00
parent 72999839d2
commit 0e1e639bd7

View File

@@ -311,9 +311,13 @@ def stub_out_vm_methods(stubs):
def fake_generate_ephemeral(cls, *args):
pass
def fake_wait_for_device(dev):
pass
stubs.Set(vmops.VMOps, "_acquire_bootlock", fake_acquire_bootlock)
stubs.Set(vmops.VMOps, "_release_bootlock", fake_release_bootlock)
stubs.Set(vm_utils.VMHelper, 'generate_ephemeral', fake_generate_ephemeral)
stubs.Set(vm_utils, '_wait_for_device', fake_wait_for_device)
class FakeSessionForVolumeTests(fake.SessionBase):