mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(#11) Provide a way to delete all vms acquired by token
This commit adds a way for a user to delete all vms that were obtained by a specific token. It will ask the user if they are sure before deleting everything.
This commit is contained in:
parent
bc4cff5363
commit
a0ba604006
3 changed files with 34 additions and 3 deletions
|
|
@ -48,7 +48,7 @@ describe Pooler do
|
|||
with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'User-Agent'=>'Faraday v0.9.1'}).
|
||||
to_return(:status => 200, :body => @token_status_response, :headers => {})
|
||||
|
||||
expect(Auth.token_status(false, @vmpooler_url, @token)).to eq @get_token_response
|
||||
expect(Auth.token_status(false, @vmpooler_url, @token)).to eq JSON.parse(@token_status_response)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue