mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(POOLER-73) Remove #move_running_to_completed tests
The tests for #move_running_to_completed are already tested in the
This commit is contained in:
parent
daad5c7086
commit
64d2d95ab3
1 changed files with 0 additions and 20 deletions
|
|
@ -504,26 +504,6 @@ EOT
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe '#move_running_to_completed' do
|
|
||||||
before do
|
|
||||||
expect(subject).not_to be_nil
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'uses the pool in smove' do
|
|
||||||
allow(redis).to receive(:smove).with(String, String, String)
|
|
||||||
allow(logger).to receive(:log)
|
|
||||||
expect(redis).to receive(:smove).with('vmpooler__running__p1', 'vmpooler__completed__p1', 'vm1')
|
|
||||||
subject.move_vm_queue('p1', 'vm1', 'running', 'completed', 'msg')
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'logs msg' do
|
|
||||||
allow(redis).to receive(:smove)
|
|
||||||
allow(logger).to receive(:log)
|
|
||||||
expect(logger).to receive(:log).with('d', "[!] [p1] 'vm1' a msg here")
|
|
||||||
subject.move_vm_queue('p1', 'vm1', 'running', 'completed', 'a msg here')
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe '#clone_vm' do
|
describe '#clone_vm' do
|
||||||
before do
|
before do
|
||||||
expect(subject).not_to be_nil
|
expect(subject).not_to be_nil
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue