mirror of
https://github.com/puppetlabs/vmpooler-provider-gce.git
synced 2026-01-25 19:18:40 -05:00
(POD-10) Log reason for failed VM checks.
This commit is contained in:
parent
11405592c3
commit
493e358ba1
2 changed files with 10 additions and 4 deletions
|
|
@ -361,7 +361,9 @@ EOT
|
|||
end
|
||||
|
||||
it 'should return true' do
|
||||
expect(subject.vm_ready?(poolname, vmname)).to be true
|
||||
redis_connection_pool.with_metrics do |redis|
|
||||
expect(subject.vm_ready?(poolname, vmname, redis)).to be true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -371,7 +373,9 @@ EOT
|
|||
end
|
||||
|
||||
it 'should return false' do
|
||||
expect(subject.vm_ready?(poolname, vmname)).to be false
|
||||
redis_connection_pool.with_metrics do |redis|
|
||||
expect(subject.vm_ready?(poolname, vmname, redis)).to be false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue