(maint) Update token status to not require password

This commit is contained in:
Brian Cain 2015-11-05 13:28:37 -08:00
parent 2beb36f53e
commit fa92da5c05
5 changed files with 9 additions and 8 deletions

View file

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