mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
Fix modify spec test for requests
This commit is contained in:
parent
1cfe1b7131
commit
4cf77bc4d4
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ describe Pooler do
|
||||||
|
|
||||||
it "modifies the TTL of a vm" do
|
it "modifies the TTL of a vm" do
|
||||||
stub_request(:put, "#{@vmpooler_url}/vm/fq6qlpjlsskycq6").
|
stub_request(:put, "#{@vmpooler_url}/vm/fq6qlpjlsskycq6").
|
||||||
with(:body => {"lifetime"=>"12"},
|
with(:body => {"{\"lifetime\":12}"=>true},
|
||||||
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.1', 'X-Auth-Token'=>'mytokenfile'}).
|
:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Content-Type'=>'application/x-www-form-urlencoded', 'User-Agent'=>'Faraday v0.9.1', 'X-Auth-Token'=>'mytokenfile'}).
|
||||||
to_return(:status => 200, :body => @modify_response_body_success, :headers => {})
|
to_return(:status => 200, :body => @modify_response_body_success, :headers => {})
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue