mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Fix tests based on new dns config
This commit is contained in:
parent
91248fe23a
commit
1df7ab6d34
10 changed files with 386 additions and 141 deletions
|
|
@ -63,9 +63,9 @@ describe 'Vmpooler' do
|
|||
expect(Vmpooler.config[:providers].keys).to include(:dummy)
|
||||
expect(Vmpooler.config[:providers].keys).to include(:alice)
|
||||
expect(Vmpooler.config[:providers].keys).to include(:bob)
|
||||
merged_pools = [{"name"=>"pool03", "provider"=>"dummy", "ready_ttl"=>5, "size"=>5},
|
||||
{"name"=>"pool04", "provider"=>"dummy", "ready_ttl"=>5, "size"=>5},
|
||||
{"name"=>"pool05", "provider"=>"dummy", "ready_ttl"=>5, "size"=>5}]
|
||||
merged_pools = [{"name"=>"pool03", "provider"=>"dummy", "dns_plugin"=>"example", "ready_ttl"=>5, "size"=>5},
|
||||
{"name"=>"pool04", "provider"=>"dummy", "dns_plugin"=>"example", "ready_ttl"=>5, "size"=>5},
|
||||
{"name"=>"pool05", "provider"=>"dummy", "dns_plugin"=>"example", "ready_ttl"=>5, "size"=>5}]
|
||||
expect(Vmpooler.config[:pools]).to eq(merged_pools)
|
||||
expect(Vmpooler.config[:config]).not_to be_nil #merge does not deleted existing keys
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue