From d940f313db72d43472a4b544650dc88062a50ccf Mon Sep 17 00:00:00 2001 From: Sebastian Bernauer Date: Mon, 7 Jul 2025 11:40:23 +0200 Subject: [PATCH] test: Fix outdated rego rules --- docs/modules/opa/pages/usage-guide/policies.adoc | 4 ++-- tests/templates/kuttl/logging/03-install-opa.yaml.j2 | 4 ++-- tests/templates/kuttl/smoke/10-install-opa.yaml.j2 | 2 -- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/modules/opa/pages/usage-guide/policies.adoc b/docs/modules/opa/pages/usage-guide/policies.adoc index f9af9d7d..172d0711 100644 --- a/docs/modules/opa/pages/usage-guide/policies.adoc +++ b/docs/modules/opa/pages/usage-guide/policies.adoc @@ -21,11 +21,11 @@ data: test.rego: | # <2> package test - hello { + hello if { true } - world { + world if { false } ---- diff --git a/tests/templates/kuttl/logging/03-install-opa.yaml.j2 b/tests/templates/kuttl/logging/03-install-opa.yaml.j2 index 89c66041..7e4ef439 100644 --- a/tests/templates/kuttl/logging/03-install-opa.yaml.j2 +++ b/tests/templates/kuttl/logging/03-install-opa.yaml.j2 @@ -9,11 +9,11 @@ data: test.rego: | package test - hello { + hello if { true } - world { + world if { false } --- diff --git a/tests/templates/kuttl/smoke/10-install-opa.yaml.j2 b/tests/templates/kuttl/smoke/10-install-opa.yaml.j2 index 2838e008..78b443bb 100644 --- a/tests/templates/kuttl/smoke/10-install-opa.yaml.j2 +++ b/tests/templates/kuttl/smoke/10-install-opa.yaml.j2 @@ -9,8 +9,6 @@ data: test.rego: | package test - import rego.v1 - hello if { true }