From 3ede79890d284d614d37ca7b0b4fe1142233e401 Mon Sep 17 00:00:00 2001 From: Juan Antonio Osorio Date: Thu, 19 Dec 2024 17:50:50 +0200 Subject: [PATCH] Enable rego printing in tests this helps us debug. Signed-off-by: Juan Antonio Osorio --- rules_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rules_test.go b/rules_test.go index dbe12d8..64bb8f9 100644 --- a/rules_test.go +++ b/rules_test.go @@ -129,6 +129,8 @@ type RuleTypeTestFunc func(t *testing.T, rt *minderv1.RuleType, suite *RuleTest, func TestRuleTypes(t *testing.T) { t.Parallel() + require.NoError(t, os.Setenv("REGO_ENABLE_PRINT", "true")) + // iterate rule types directory err := walkRuleTypesTests(t, func(t *testing.T, rt *minderv1.RuleType, tc *RuleTest, rtDataPath string) { var opts []tkv1.Option