From 6b55511218ec08ff6286fd39fd9ba89299051460 Mon Sep 17 00:00:00 2001 From: Berkay Tekin Oz Date: Thu, 12 Dec 2024 16:41:31 +0000 Subject: [PATCH] Revert cis validator change --- tests/validators.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/validators.py b/tests/validators.py index ff3f1ce4..a3c661ca 100644 --- a/tests/validators.py +++ b/tests/validators.py @@ -459,8 +459,14 @@ def validate_cis_hardening(): print(output) assert "41 checks WARN" in output - assert "83 checks PASS" in output - assert "0 checks FAIL" in output + if os.environ.get("STRICT") == "yes": + assert "82 checks PASS" in output + assert "1 checks FAIL" in output + else: + # The extra test that is failing on strict is the permissions of the + # systemd kubelite service definition + assert "83 checks PASS" in output + assert "0 checks FAIL" in output def validate_rook_ceph():