mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 13:28:42 -05:00
(maint) Update token status to not require password
This commit is contained in:
parent
2beb36f53e
commit
fa92da5c05
5 changed files with 9 additions and 8 deletions
|
|
@ -44,11 +44,11 @@ describe Pooler do
|
|||
end
|
||||
|
||||
it "checks the status of a token" do
|
||||
stub_request(:get, "https://first.last:password@vmpooler.example.com/token/utpg2i2xswor6h8ttjhu3d47z53yy47y").
|
||||
stub_request(:get, "#{@vmpooler_url}/token/utpg2i2xswor6h8ttjhu3d47z53yy47y").
|
||||
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, "first.last", "password", @token)).to eq @get_token_response
|
||||
expect(Auth.token_status(false, @vmpooler_url, @token)).to eq @get_token_response
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue