summaryrefslogtreecommitdiff
path: root/test/e2e
diff options
context:
space:
mode:
authorSteven Taylor <steven@taylormuff.co.uk>2021-02-04 19:57:08 +0000
committerSteven Taylor <steven@taylormuff.co.uk>2021-02-04 19:57:08 +0000
commit6c713984ef9037a7b102e8ed72c72763167260eb (patch)
treec792b4f36cf52c1edbdc42680565080718f42ce3 /test/e2e
parent96adf0e2a2eef81bb379ecfcdc5d62339bca7141 (diff)
downloadpodman-6c713984ef9037a7b102e8ed72c72763167260eb.tar.gz
podman-6c713984ef9037a7b102e8ed72c72763167260eb.tar.bz2
podman-6c713984ef9037a7b102e8ed72c72763167260eb.zip
play kube selinux test case
added skip to test case where selinux not enabled Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
Diffstat (limited to 'test/e2e')
-rw-r--r--test/e2e/play_kube_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/e2e/play_kube_test.go b/test/e2e/play_kube_test.go
index e34063dc2..2e5c72b0e 100644
--- a/test/e2e/play_kube_test.go
+++ b/test/e2e/play_kube_test.go
@@ -13,6 +13,7 @@ import (
. "github.com/containers/podman/v2/test/utils"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
+ "github.com/opencontainers/selinux/go-selinux"
)
var unknownKindYaml = `
@@ -847,6 +848,9 @@ var _ = Describe("Podman play kube", func() {
})
It("podman play kube fail with custom selinux label", func() {
+ if !selinux.GetEnabled() {
+ Skip("SELinux not enabled")
+ }
err := writeYaml(selinuxLabelPodYaml, kubeYaml)
Expect(err).To(BeNil())