Skip to content

Commit

Permalink
more log check
Browse files Browse the repository at this point in the history
  • Loading branch information
chronolaw committed Nov 9, 2024
1 parent 106d4f0 commit 54e213e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/02-integration/19-incrmental_sync/01-sync_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ describe("Incremental Sync RPC #" .. strategy, function()
assert.logfile().has.no.line("unable to update clustering data plane status", true)

assert.logfile("servroot2/logs/error.log").has.line("[kong.sync.v2] update entity", true)
assert.logfile("servroot2/logs/error.log").has.no.line("[kong.sync.v2] delete entity", true)

res = assert(admin_client:delete("/services/service-003/routes/" .. route_id))
assert.res_status(204, res)
Expand Down Expand Up @@ -310,6 +311,7 @@ describe("Incremental Sync RPC #" .. strategy, function()
assert.logfile().has.no.line("unable to update clustering data plane status", true)

assert.logfile("servroot2/logs/error.log").has.line("[kong.sync.v2] update entity", true)
assert.logfile("servroot2/logs/error.log").has.no.line("[kong.sync.v2] delete entity", true)

res = assert(admin_client:delete("/services/service-005/routes/route-005"))
assert.res_status(204, res)
Expand Down Expand Up @@ -412,6 +414,9 @@ describe("Incremental Sync RPC #" .. strategy, function()
end
end, 10)

assert.logfile().has.no.line("[kong.sync.v2] new delta due to cascade deleting", true)
assert.logfile("servroot2/logs/error.log").has.no.line("[kong.sync.v2] delete entity", true)

-- delete consumer and key-auth

res = assert(admin_client:delete("/consumers/foo"))
Expand Down

0 comments on commit 54e213e

Please sign in to comment.