Skip to content

Commit

Permalink
play kube selinux test case
Browse files Browse the repository at this point in the history
added skip to test case where selinux not enabled

Signed-off-by: Steven Taylor <[email protected]>
  • Loading branch information
st1971 committed Feb 4, 2021
1 parent 96adf0e commit 6c71398
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/e2e/play_kube_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
Expand Down Expand Up @@ -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())

Expand Down

0 comments on commit 6c71398

Please sign in to comment.