Skip to content

Commit 682d002

Browse files
committed
added validation of values for podSecurityLabels enforce, and warn
Signed-off-by: nmirasch <neus.miras@gmail.com>
1 parent 9bf5518 commit 682d002

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/openshift/e2e/ginkgo/sequential/1-110_validate_podsecurity_alerts_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ var _ = Describe("GitOps Operator Sequential E2E Tests", func() {
3030
k8sFixture.HaveLabelWithValue("security.openshift.io/scc.podSecurityLabelSync", "true"))
3131

3232
By("OpenShift sets pod-security.kubernetes.io/audit=restricted (pod-security *-version labels vary by cluster and are not asserted)")
33-
Eventually(gitopsNS, "5m", "5s").Should(
34-
k8sFixture.HaveLabelWithValue("pod-security.kubernetes.io/audit", "restricted"))
33+
Eventually(gitopsNS, "5m", "5s").Should(k8sFixture.HaveLabelWithValue("pod-security.kubernetes.io/audit", "restricted"))
34+
Eventually(gitopsNS, "5m", "5s").Should(k8sFixture.HaveLabelWithValue("pod-security.kubernetes.io/enforce", "restricted"))
35+
Eventually(gitopsNS, "5m", "5s").Should(k8sFixture.HaveLabelWithValue("pod-security.kubernetes.io/warn", "restricted"))
3536
})
3637

3738
})

0 commit comments

Comments
 (0)