mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(POOLER-70) Add config for VM Provider
This commit adds a public function to access the internal variable holding the VMPooler configuration. This is required for later commits for the execute! function testing.
This commit is contained in:
parent
710b3808a5
commit
1a3ae86943
2 changed files with 14 additions and 0 deletions
|
|
@ -36,6 +36,16 @@ EOT
|
|||
|
||||
subject { Vmpooler::PoolManager.new(config, logger, redis, metrics) }
|
||||
|
||||
describe '#config' do
|
||||
before do
|
||||
expect(subject).not_to be_nil
|
||||
end
|
||||
|
||||
it 'should return the current configuration' do
|
||||
expect(subject.config).to eq(config)
|
||||
end
|
||||
end
|
||||
|
||||
describe '#check_pending_vm' do
|
||||
before do
|
||||
expect(subject).not_to be_nil
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue