mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
(#25) Remove printing from delete method in pooler api
This commit is contained in:
parent
a6c5f1dceb
commit
5f6cd1df1d
4 changed files with 16 additions and 10 deletions
|
|
@ -94,6 +94,7 @@ describe Pooler do
|
|||
describe "#delete" do
|
||||
before :each do
|
||||
@delete_response_body_success = "{\"ok\":true}"
|
||||
@delete_response = {"fq6qlpjlsskycq6"=>{"ok"=>true}}
|
||||
end
|
||||
|
||||
it "deletes a specified vm" do
|
||||
|
|
@ -101,7 +102,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', 'X-Auth-Token'=>'mytokenfile'}).
|
||||
to_return(:status => 200, :body => @delete_response_body_success, :headers => {})
|
||||
|
||||
#expect(Pooler.delete(false, @vmpooler_url, ['fq6qlpjlsskycq6'], 'mytokenfile')).to output(/Scheduling host fq6qlpjlsskycq6 for deletion/).to_stdout
|
||||
expect(Pooler.delete(false, @vmpooler_url, ['fq6qlpjlsskycq6'], 'mytokenfile')).to eq @delete_response
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue