From ce44cb3092f8b2a12518a44006ce1e23941b6654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arda=20G=C3=BC=C3=A7l=C3=BC?= Date: Fri, 27 Sep 2024 08:55:21 +0300 Subject: [PATCH] Loosen output check in policy scc-subject-review, scc-review test --- test/extended/cli/policy.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/extended/cli/policy.go b/test/extended/cli/policy.go index 8d7e9569273b..3eac6f1dca51 100644 --- a/test/extended/cli/policy.go +++ b/test/extended/cli/policy.go @@ -35,6 +35,7 @@ var _ = g.Describe("[sig-cli] policy", func() { out, err = oc.Run("policy", "scc-subject-review").Args("-f", simpleDeployment, "-o=jsonpath={.status.allowedBy.name}").Output() o.Expect(err).NotTo(o.HaveOccurred()) - o.Expect(out).To(o.Equal("restricted-v2")) + // it should be o.Equal but temporarily we need to eliminate the warning message prepended to the output. + o.Expect(out).To(o.HaveSuffix("restricted-v2")) }) })