From dcc1f92dd6bb3aefba2835f7f23cc364a19623f5 Mon Sep 17 00:00:00 2001 From: Kirsten Laskoski Date: Wed, 5 Jun 2024 13:02:43 -0400 Subject: [PATCH] cnf ran: update pod security label for test namespace In the powermanagement test suite, there is a failure due to the stressng pods not meeting the restricted security standard. This updates the namespace to only enforce the baseline standard, which should allow the stressng pods to be created. --- tests/cnf/ran/powermanagement/powermanagement_suite_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/cnf/ran/powermanagement/powermanagement_suite_test.go b/tests/cnf/ran/powermanagement/powermanagement_suite_test.go index f936595e9..8bc0fed62 100644 --- a/tests/cnf/ran/powermanagement/powermanagement_suite_test.go +++ b/tests/cnf/ran/powermanagement/powermanagement_suite_test.go @@ -26,7 +26,8 @@ func TestPowerSave(t *testing.T) { var _ = BeforeSuite(func() { // Cleanup and create test namespace - testNamespace := namespace.NewBuilder(Spoke1APIClient, tsparams.TestingNamespace) + testNamespace := namespace.NewBuilder(Spoke1APIClient, tsparams.TestingNamespace). + WithLabel("pod-security.kubernetes.io/enforce", "baseline") glog.V(ranparam.LogLevel).Infof("Deleting test namespace ", tsparams.TestingNamespace) err := testNamespace.DeleteAndWait(tsparams.PowerSaveTimeout)