Skip to content

Commit

Permalink
fix(clustering/rpc): added required field for mocked workspace to byp…
Browse files Browse the repository at this point in the history
…ass validation (#14213)

The original constructed workspace lack required fields, this commit adds them to bypass DP's delta validation.

KAG-5897
  • Loading branch information
chobits authored Jan 22, 2025
1 parent c85bc75 commit c4093c0
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

1 comment on commit c4093c0

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bazel Build

Docker image available kong/kong-dev:c4093c0fbd01d0636feb83a0d19dc0692db64948
Artifacts available https://github.com/Kong/kong/actions/runs/12905838075

Please sign in to comment.