From 24fef5bf9a32b7a2d01363483d8757d4e1fe725a Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Thu, 5 Sep 2024 08:32:55 -0500 Subject: [PATCH] Update assertions for kubelet-client-cert|key rules We recently enabled these rules for 4.17, but didn't update the 4.17 assertion files for FedRAMP High, FedRAMP Moderate, PCI-DSS, or CIS. This commit does that so that so the tests assert the correct behavior on 4.17. https://github.com/ComplianceAsCode/content/pull/12311 --- tests/assertions/ocp4/ocp4-cis-4.17.yml | 8 ++++---- tests/assertions/ocp4/ocp4-high-4.17.yml | 8 ++++---- tests/assertions/ocp4/ocp4-moderate-4.17.yml | 8 ++++---- tests/assertions/ocp4/ocp4-pci-dss-4-0-4.17.yml | 8 ++++---- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/tests/assertions/ocp4/ocp4-cis-4.17.yml b/tests/assertions/ocp4/ocp4-cis-4.17.yml index 35c56794036..1118ba70a5e 100644 --- a/tests/assertions/ocp4/ocp4-cis-4.17.yml +++ b/tests/assertions/ocp4/ocp4-cis-4.17.yml @@ -78,14 +78,14 @@ rule_results: default_result: PASS result_after_remediation: PASS e2e-cis-api-server-kubelet-client-cert: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-cis-api-server-kubelet-client-cert-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE e2e-cis-api-server-kubelet-client-key: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-cis-api-server-kubelet-client-key-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE diff --git a/tests/assertions/ocp4/ocp4-high-4.17.yml b/tests/assertions/ocp4/ocp4-high-4.17.yml index 9e56115478f..c19e806d89f 100644 --- a/tests/assertions/ocp4/ocp4-high-4.17.yml +++ b/tests/assertions/ocp4/ocp4-high-4.17.yml @@ -90,14 +90,14 @@ rule_results: default_result: PASS result_after_remediation: PASS e2e-high-api-server-kubelet-client-cert: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-high-api-server-kubelet-client-cert-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE e2e-high-api-server-kubelet-client-key: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-high-api-server-kubelet-client-key-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE diff --git a/tests/assertions/ocp4/ocp4-moderate-4.17.yml b/tests/assertions/ocp4/ocp4-moderate-4.17.yml index 867aa8a10ff..1430b76baa2 100644 --- a/tests/assertions/ocp4/ocp4-moderate-4.17.yml +++ b/tests/assertions/ocp4/ocp4-moderate-4.17.yml @@ -87,14 +87,14 @@ rule_results: default_result: PASS result_after_remediation: PASS e2e-moderate-api-server-kubelet-client-cert: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-moderate-api-server-kubelet-client-cert-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE e2e-moderate-api-server-kubelet-client-key: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-moderate-api-server-kubelet-client-key-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE diff --git a/tests/assertions/ocp4/ocp4-pci-dss-4-0-4.17.yml b/tests/assertions/ocp4/ocp4-pci-dss-4-0-4.17.yml index 3f8eae8dcb7..3a11c447e47 100644 --- a/tests/assertions/ocp4/ocp4-pci-dss-4-0-4.17.yml +++ b/tests/assertions/ocp4/ocp4-pci-dss-4-0-4.17.yml @@ -78,14 +78,14 @@ rule_results: default_result: PASS result_after_remediation: PASS e2e-pci-dss-4-0-api-server-kubelet-client-cert: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-pci-dss-4-0-api-server-kubelet-client-cert-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE e2e-pci-dss-4-0-api-server-kubelet-client-key: - default_result: NOT-APPLICABLE - result_after_remediation: NOT-APPLICABLE + default_result: PASS + result_after_remediation: PASS e2e-pci-dss-4-0-api-server-kubelet-client-key-pre-4-9: default_result: NOT-APPLICABLE result_after_remediation: NOT-APPLICABLE