mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Store token metadata in vmpooler__vm__ Redis hash
This commit is contained in:
parent
c4ad99c493
commit
7bddfdef1b
2 changed files with 10 additions and 2 deletions
|
|
@ -177,6 +177,7 @@ describe Vmpooler::API::V1 do
|
|||
app.settings.set :redis, redis
|
||||
|
||||
allow(redis).to receive(:exists).and_return '1'
|
||||
allow(redis).to receive(:hget).with('vmpooler__token__abcdefghijklmnopqrstuvwxyz012345', 'user').and_return 'jdoe'
|
||||
allow(redis).to receive(:hset).and_return '1'
|
||||
allow(redis).to receive(:sadd).and_return '1'
|
||||
allow(redis).to receive(:scard).and_return '5'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue