From fa9e768d9e8aa2881061c9b06abe404d095a5551 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 9 Aug 2023 16:54:45 +0900 Subject: [PATCH] Fix test case --- apis/duck/patch_test.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apis/duck/patch_test.go b/apis/duck/patch_test.go index e260d72f85..5ade803736 100644 --- a/apis/duck/patch_test.go +++ b/apis/duck/patch_test.go @@ -207,6 +207,10 @@ func TestCreatePatch(t *testing.T) { }, want: JSONPatch{{ Operation: "add", + Path: "/status/patchable/array/2", + Value: "baz", + }, { + Operation: "replace", Path: "/status/patchable/array/1", Value: "bar", }}, @@ -228,7 +232,11 @@ func TestCreatePatch(t *testing.T) { }, want: JSONPatch{{ Operation: "remove", + Path: "/status/patchable/array/1", + }, { + Operation: "replace", Path: "/status/patchable/array/0", + Value: "bar", }}, }, { name: "patch with remove collection", @@ -266,6 +274,10 @@ func TestCreatePatch(t *testing.T) { }, want: JSONPatch{{ Operation: "add", + Path: "/status/patchable/array/1", + Value: "bar", + }, { + Operation: "replace", Path: "/status/patchable/array/0", Value: "foo", }},