mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(POOLER-73) Add spec tests for migrate_vm
Add spect tests for migrate_vm
This commit is contained in:
parent
713e202d68
commit
925071be79
1 changed files with 15 additions and 0 deletions
|
|
@ -955,6 +955,21 @@ EOT
|
|||
end
|
||||
end
|
||||
|
||||
describe '#migrate_vm' do
|
||||
let(:vsphere) { double('vsphere') }
|
||||
|
||||
before do
|
||||
expect(subject).not_to be_nil
|
||||
end
|
||||
|
||||
it 'calls _migrate_vm' do
|
||||
expect(Thread).to receive(:new).and_yield
|
||||
expect(subject).to receive(:_migrate_vm).with(vm, pool, vsphere)
|
||||
|
||||
subject.migrate_vm(vm, pool, vsphere)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#get_vm_host_info" do
|
||||
before do
|
||||
expect(subject).not_to be_nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue