Store token metadata in vmpooler__vm__ Redis hash

This commit is contained in:
Scott Schneider 2015-04-30 19:16:27 -07:00
parent c4ad99c493
commit 7bddfdef1b
2 changed files with 10 additions and 2 deletions

View file

@ -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'