play kube selinux test case

added skip to test case where selinux not enabled

Signed-off-by: Steven Taylor <steven@taylormuff.co.uk>
This commit is contained in:
Steven Taylor
2021-02-04 19:57:08 +00:00
parent 96adf0e2a2
commit 6c713984ef

View File

@ -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())