mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
Add a configurable maximum per pool request upper limit
This commit is contained in:
parent
9ea80f2a10
commit
0e798c391d
5 changed files with 108 additions and 66 deletions
|
|
@ -4901,6 +4901,13 @@ EOT
|
|||
end
|
||||
end
|
||||
|
||||
it 'marks the ondemand request hash key for expiration in one month' do
|
||||
redis_connection_pool.with do |redis|
|
||||
expect(redis).to receive(:expire).with("vmpooler__odrequest__#{request_id}", 2592000)
|
||||
subject.check_ondemand_requests_ready(redis)
|
||||
end
|
||||
end
|
||||
|
||||
it 'removes the request from processing' do
|
||||
redis_connection_pool.with do |redis|
|
||||
expect(redis).to receive(:zrem).with('vmpooler__provisioning__processing', request_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue