From 4075fb3b78dc1ad18541880e150f77886a916d88 Mon Sep 17 00:00:00 2001 From: Xiaochen Wang Date: Wed, 22 Jan 2025 17:45:37 +0800 Subject: [PATCH] fix(clustering/rpc): added required field for mocked workspace to bypass validation --- .../kong/plugins/rpc-notify-new-version-test/handler.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua b/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua index 7d6d7952804..1862de167ff 100644 --- a/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua +++ b/spec/fixtures/custom_plugins/kong/plugins/rpc-notify-new-version-test/handler.lua @@ -23,6 +23,10 @@ function RpcSyncV2NotifyNewVersioinTestHandler:init_worker() entity = { id = fake_uuid, name = "default", + -- It must contain feild "config" and "meta", otherwise the deltas + -- validation will fail with the error "required field missing". + config = {}, + meta = {}, }, type = "workspaces", version = latest_version,