diff options
author | Steven Taylor <steven@taylormuff.co.uk> | 2021-02-04 19:57:08 +0000 |
---|---|---|
committer | Matthew Heon <matthew.heon@pm.me> | 2021-02-05 13:53:04 -0500 |
commit | 9cf6b7f8dcfb1c6984ebf9cc49635ff97f29c4d7 (patch) | |
tree | ec405f4c7908f6810581db3393a3cd7f41b2bdbe /test | |
parent | c9a6e6eaf35a3c604de13e34fad3d5b027c1e7cd (diff) | |
download | podman-9cf6b7f8dcfb1c6984ebf9cc49635ff97f29c4d7.tar.gz podman-9cf6b7f8dcfb1c6984ebf9cc49635ff97f29c4d7.tar.bz2 podman-9cf6b7f8dcfb1c6984ebf9cc49635ff97f29c4d7.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')
-rw-r--r-- | test/e2e/play_kube_test.go | 4 |
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()) |