Skip to content

Commit

Permalink
fix(lint) OAuth2 stopped linting correctly after latest changes
Browse files Browse the repository at this point in the history
thibaultcha committed Mar 23, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent c9d3e56 commit 3b51e04
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion kong/plugins/oauth2/api.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local crud = require "kong.api.crud_helpers"
local utils = require "kong.tools.utils"

return {
["/oauth2_tokens/"] = {
4 changes: 2 additions & 2 deletions spec/plugins/oauth2/access_spec.lua
Original file line number Diff line number Diff line change
@@ -301,7 +301,7 @@ describe("Authentication Plugin", function()
end)

it("should return success and the token should have the right expiration", function()
local response, status, headers = http_client.post(PROXY_SSL_URL.."/oauth2/authorize", { provision_key = "provision123", authenticated_userid = "id123", client_id = "clientid123", scope = "email", response_type = "token" }, {host = "oauth2.com"})
local response, status = http_client.post(PROXY_SSL_URL.."/oauth2/authorize", { provision_key = "provision123", authenticated_userid = "id123", client_id = "clientid123", scope = "email", response_type = "token" }, {host = "oauth2.com"})
local body = cjson.decode(response)
assert.are.equal(200, status)
assert.are.equal(1, utils.table_size(body))
@@ -881,4 +881,4 @@ describe("Authentication Plugin", function()

end)

end)
end)

0 comments on commit 3b51e04

Please sign in to comment.