From dc6070d90dec68725aebf5af4bced78498a16f05 Mon Sep 17 00:00:00 2001 From: "gcp-cherry-pick-bot[bot]" <98988430+gcp-cherry-pick-bot[bot]@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:11:31 +0000 Subject: [PATCH] chore: bump kyverno-json (#1793) (#1795) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Charles-Edouard Brétéché Co-authored-by: Charles-Edouard Brétéché --- go.mod | 2 +- go.sum | 4 ++-- pkg/commands/assert/command_test.go | 2 +- pkg/runner/operations/assert/operation_test.go | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/go.mod b/go.mod index dbd79b181..87530953b 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/hashicorp/go-getter v1.7.5 github.com/jmespath-community/go-jmespath v1.1.2-0.20240627155901-bdbb290f571e github.com/kudobuilder/kuttl v0.18.0 - github.com/kyverno/kyverno-json v0.0.4-0.20240730094957-99eace6e4275 + github.com/kyverno/kyverno-json v0.0.4-0.20240730123003-42f7e4f4fb41 github.com/kyverno/pkg/ext v0.0.0-20240418121121-df8add26c55c github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 github.com/prometheus/common v0.47.0 diff --git a/go.sum b/go.sum index 4b29c2a7e..bb1fce242 100644 --- a/go.sum +++ b/go.sum @@ -481,8 +481,8 @@ github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY= github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE= github.com/kudobuilder/kuttl v0.18.0 h1:WeoxTamWd8AXVj6NWH1PCaV8CEXavaPJiExbm2J7bcI= github.com/kudobuilder/kuttl v0.18.0/go.mod h1:ZXR6RcZg9CBYvVPgd2eaGLn3o0ihSvYQOCvwaN+psaw= -github.com/kyverno/kyverno-json v0.0.4-0.20240730094957-99eace6e4275 h1:RtkyaWdjCZfqNAE3s+MaxWde79fbdHrDWc1inolpxEE= -github.com/kyverno/kyverno-json v0.0.4-0.20240730094957-99eace6e4275/go.mod h1:3LgZogzltja+Sx0o5CIa7d7+991v8sWXHskU0fWSOsQ= +github.com/kyverno/kyverno-json v0.0.4-0.20240730123003-42f7e4f4fb41 h1:fyXMkX+wyTVpCiIoDjFp20OApqNRBK51D5MvmAidAuQ= +github.com/kyverno/kyverno-json v0.0.4-0.20240730123003-42f7e4f4fb41/go.mod h1:3LgZogzltja+Sx0o5CIa7d7+991v8sWXHskU0fWSOsQ= github.com/kyverno/pkg/ext v0.0.0-20240418121121-df8add26c55c h1:lAolpR9H8BwM5lRRvgCQ8JowswyxZRH+fgtIQzHFVCk= github.com/kyverno/pkg/ext v0.0.0-20240418121121-df8add26c55c/go.mod h1:02vxM0GNXz9+B/i6+rMfWAIwibUuAH+qFsd73IFskgQ= github.com/mailru/easyjson v0.7.7 h1:UGYAvKxe3sBsEDzO8ZeWOSlIQfWFlxbzLZe7hwFURr0= diff --git a/pkg/commands/assert/command_test.go b/pkg/commands/assert/command_test.go index ddfd9355f..204db80db 100644 --- a/pkg/commands/assert/command_test.go +++ b/pkg/commands/assert/command_test.go @@ -215,7 +215,7 @@ func Test_runE(t *testing.T) { "------------------------\n" + "v1/ConfigMap/quick-start\n" + "------------------------\n" + - "* data.foo: Required value: projection is not valid\n\n" + + "* data.foo: Required value: field not found in the input object\n\n" + "--- expected\n" + "+++ actual\n" + "@@ -1,6 +1,5 @@\n" + diff --git a/pkg/runner/operations/assert/operation_test.go b/pkg/runner/operations/assert/operation_test.go index c8403ae3e..127bb98e7 100644 --- a/pkg/runner/operations/assert/operation_test.go +++ b/pkg/runner/operations/assert/operation_test.go @@ -176,7 +176,7 @@ func Test_operationAssert(t *testing.T) { return nil }, }, - expectedLogs: []string{"ASSERT: RUN - []", "ASSERT: ERROR - [=== ERROR\n---------------\nv1/Pod/test-pod\n---------------\n* spec.foo: Required value: projection is not valid\n\n--- expected\n+++ actual\n@@ -2,6 +2,5 @@\n kind: Pod\n metadata:\n name: test-pod\n-spec:\n- foo: bar\n+spec: {}]"}, + expectedLogs: []string{"ASSERT: RUN - []", "ASSERT: ERROR - [=== ERROR\n---------------\nv1/Pod/test-pod\n---------------\n* spec.foo: Required value: field not found in the input object\n\n--- expected\n+++ actual\n@@ -2,6 +2,5 @@\n kind: Pod\n metadata:\n name: test-pod\n-spec:\n- foo: bar\n+spec: {}]"}, expectErr: true, }, { name: "Successful match using List",