Add e2e test
This commit is contained in:
parent
9be174738d
commit
1109db2d09
1 changed files with 22 additions and 19 deletions
|
@ -75,6 +75,8 @@ var _ = framework.IngressNginxDescribe("Pod Security Policies", func() {
|
||||||
f.NewEchoDeployment()
|
f.NewEchoDeployment()
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// running tests in parallel can update the cluster roles, which introduce a failure
|
||||||
|
/*
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
role, err := f.KubeClientSet.RbacV1().ClusterRoles().Get("nginx-ingress-clusterrole", metav1.GetOptions{})
|
role, err := f.KubeClientSet.RbacV1().ClusterRoles().Get("nginx-ingress-clusterrole", metav1.GetOptions{})
|
||||||
Expect(err).NotTo(HaveOccurred(), "getting ingress controller cluster role")
|
Expect(err).NotTo(HaveOccurred(), "getting ingress controller cluster role")
|
||||||
|
@ -98,6 +100,7 @@ var _ = framework.IngressNginxDescribe("Pod Security Policies", func() {
|
||||||
_, err = f.KubeClientSet.RbacV1().ClusterRoles().Update(role)
|
_, err = f.KubeClientSet.RbacV1().ClusterRoles().Update(role)
|
||||||
Expect(err).NotTo(HaveOccurred(), "updating ingress controller cluster role to use a pod security policy")
|
Expect(err).NotTo(HaveOccurred(), "updating ingress controller cluster role to use a pod security policy")
|
||||||
})
|
})
|
||||||
|
*/
|
||||||
|
|
||||||
It("should be running with a Pod Security Policy", func() {
|
It("should be running with a Pod Security Policy", func() {
|
||||||
f.WaitForNginxConfiguration(
|
f.WaitForNginxConfiguration(
|
||||||
|
|
Loading…
Reference in a new issue