diff --git a/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua b/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua index 73535807692f..8b7c679ba41d 100644 --- a/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua +++ b/spec/02-integration/18-hybrid_rpc/01-rpc_spec.lua @@ -1,7 +1,8 @@ local helpers = require "spec.helpers" local cjson = require("cjson.safe") -for _, inc_sync in ipairs { "on", "off" } do +-- we need incremental sync to verify rpc +for _, inc_sync in ipairs { "on" } do for _, strategy in helpers.each_strategy() do describe("Hybrid Mode RPC #" .. strategy .. " inc_sync=" .. inc_sync, function() @@ -52,12 +53,13 @@ for _, strategy in helpers.each_strategy() do assert(json) - -- TODO: need a new test method + -- TODO: perhaps need a new test method for _, v in pairs(json.data) do if v.ip == "127.0.0.1" and v.rpc_capabilities and #v.rpc_capabilities ~= 0 then table.sort(v.rpc_capabilities) assert.near(14 * 86400, v.ttl, 3) - -- TODO: check the available rpc service + -- check the available rpc service + assert.same("kong.sync.v2", v.rpc_capabilities[1]) return true end end diff --git a/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua b/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua index 600a8872f995..1f681ebe633e 100644 --- a/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua +++ b/spec/02-integration/18-hybrid_rpc/04-concentrator_spec.lua @@ -28,7 +28,8 @@ local function obtain_dp_node_id() -- luacheck: ignore end -for _, inc_sync in ipairs { "on", "off" } do +-- we need incremental sync to verify rpc +for _, inc_sync in ipairs { "on" } do for _, strategy in helpers.each_strategy() do describe("Hybrid Mode RPC over DB concentrator #" .. strategy .. " inc_sync=" .. inc_sync, function()