mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
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:
@ -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())
|
||||
|
||||
|
Reference in New Issue
Block a user