mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Update lib/vmpooler/providers/base.rb
Co-authored-by: Gene Liverman <gene.liverman+06301990@puppet.com>
This commit is contained in:
parent
b85455e4e8
commit
ea86c2645a
3 changed files with 8 additions and 11 deletions
|
|
@ -1144,14 +1144,14 @@ EOT
|
|||
|
||||
it 'should run purge_unconfigured_resources' do
|
||||
expect(provider).to receive(:purge_unconfigured_resources).with(allowlist)
|
||||
expect(provider).to receive(:provider_config).and_return({})
|
||||
expect(provider).to receive(:provider_config).and_return({}).twice
|
||||
|
||||
subject.purge_vms_and_resources(provider_name)
|
||||
end
|
||||
|
||||
it 'should raise any errors' do
|
||||
expect(provider).to receive(:purge_unconfigured_resources).with(allowlist).and_raise('mockerror')
|
||||
expect(provider).to receive(:provider_config).and_return({})
|
||||
expect(provider).to receive(:provider_config).and_return({}).twice
|
||||
|
||||
expect{ subject.purge_vms_and_resources(provider_name) }.to raise_error(RuntimeError, 'mockerror')
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue