Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
catbro666 committed Nov 27, 2024
1 parent e89142e commit 4ff27ac
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion spec/03-plugins/09-key-auth/02-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ for _, strategy in helpers.each_strategy() do
}
})
local body = cjson.decode(assert.res_status(500, res))
assert.matches("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
assert.same("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
end)
end)
end)
Expand Down
2 changes: 1 addition & 1 deletion spec/03-plugins/10-basic-auth/03-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ for _, strategy in helpers.each_strategy() do
}
})
local body = cjson.decode(assert.res_status(500, res))
assert.matches("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
assert.same("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
end)

end)
Expand Down
2 changes: 1 addition & 1 deletion spec/03-plugins/16-jwt/03-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ for _, strategy in helpers.each_strategy() do
}
})
local body = cjson.decode(assert.res_status(500, res))
assert.matches("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
assert.same("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
end)
end)
end)
Expand Down
2 changes: 1 addition & 1 deletion spec/03-plugins/19-hmac-auth/03-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1206,7 +1206,7 @@ for _, strategy in helpers.each_strategy() do
},
})
local body = cjson.decode(assert.res_status(500, res))
assert.matches("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
assert.same("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
end)

it("should pass with GET when body validation enabled", function()
Expand Down
2 changes: 1 addition & 1 deletion spec/03-plugins/20-ldap-auth/01-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ for _, ldap_strategy in pairs(ldap_strategies) do
}
})
local body = cjson.decode(assert.res_status(500, res))
assert.matches("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
assert.same("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
end)
end)
end)
Expand Down
2 changes: 1 addition & 1 deletion spec/03-plugins/25-oauth2/03-access_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3375,7 +3375,7 @@ describe("Plugin: oauth2 [#" .. strategy .. "]", function()
}
})
local body = cjson.decode(assert.res_status(500, res))
assert.matches("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
assert.same("anonymous consumer " .. nonexisting_anonymous .. " is configured but doesn't exist", body.message)
end)
it("returns success and the token should have the right expiration when a custom header is passed", function()
local res = assert(proxy_ssl_client:send {
Expand Down

0 comments on commit 4ff27ac

Please sign in to comment.