Skip to content

Commit

Permalink
tests ok
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 27, 2024
1 parent 149ff55 commit 0b4abcc
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion spec/02-integration/11-dbless/04-pagination_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,26 @@ plugins:
- name: key-auth
- name: post-function
config:
log:
rewrite:
- |
return function(conf)
local db = kong.db
assert(db.routes.pagination.max_page_size == 2048)
assert(db.services.pagination.max_page_size == 2048)
local r, err = db.routes:each(1000)
assert(r and not err)
local r, err = db.routes:each(2047)
assert(r and not err)
local r, err = db.routes:each(2048)
assert(r and not err)
local r, err = db.routes:each(2049)
assert(not r)
assert(err == "[off] size must be an integer between 1 and 2048")
end
]]

Expand Down

0 comments on commit 0b4abcc

Please sign in to comment.