mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
add some metrics to the od request generation
This commit is contained in:
parent
dce2a96b68
commit
f59b87a7ff
4 changed files with 20 additions and 9 deletions
|
|
@ -4872,6 +4872,14 @@ EOT
|
|||
end
|
||||
end
|
||||
|
||||
it 'fails if the request is not valid' do
|
||||
redis_connection_pool.with do |redis|
|
||||
request_id = "#{request_id}-wrong"
|
||||
create_ondemand_request_for_test(request_id, current_time.to_i, "#{pool}:5", redis)
|
||||
expect{subject.vms_ready?(request_id, redis)}.to raise_error(ArgumentError)
|
||||
end
|
||||
end
|
||||
|
||||
it 'returns false when vms for request_id are not ready' do
|
||||
redis_connection_pool.with do |redis|
|
||||
result = subject.vms_ready?(request_id, redis)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue