Skip to content

Commit

Permalink
more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Feb 6, 2025
1 parent 88f264b commit 1ce1591
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/02-integration/18-hybrid_rpc/10-validate_deltas_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,19 @@ for _, strategy in helpers.each_strategy() do
"[error]", true, 10)
assert.logfile(name).has.line(
"unable to create worker mutex and sync", true, 10)

assert.logfile(name).has.line(
"'name': required field missing", true, 10)
assert.logfile(name).has.line(
"'meta': expected a record", true, 10)
assert.logfile(name).has.line(
"'config': expected a record", true, 10)

assert.logfile(name).has.line(
"'key': expected a string", true, 10)
assert.logfile(name).has.line(
"'value': expected a string", true, 10)

local name = nil

-- cp logs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ function RpcSyncV2ValidationHandler:init_worker()
version = latest_version,
ws_id = fake_uuid,
},
{
entity = {
key = 100, -- should be a string
value = {}, -- should be a string
},
type = "parameters",
version = latest_version,
ws_id = fake_uuid,
},
}

ngx.log(ngx.DEBUG, "kong.sync.v2.get_delta ok")
Expand Down

0 comments on commit 1ce1591

Please sign in to comment.