(#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:
Brian Cain 2015-11-13 11:52:01 -08:00
parent bc4cff5363
commit a0ba604006
3 changed files with 34 additions and 3 deletions

View file

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