diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-30 14:34:26 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-30 14:34:26 -0400 |
commit | 9911813c2282b71fb412756fe868e8fef6ec80b9 (patch) | |
tree | 8dbb9c9f8f567a9934a115bc4fbc225b8b6a26ab /test/e2e | |
parent | d8bdbf5b66c860a73f5d4e301535c0ee40d8d719 (diff) | |
parent | 128e168be598f76dcccfea2799e7b6015a1e929b (diff) | |
download | podman-9911813c2282b71fb412756fe868e8fef6ec80b9.tar.gz podman-9911813c2282b71fb412756fe868e8fef6ec80b9.tar.bz2 podman-9911813c2282b71fb412756fe868e8fef6ec80b9.zip |
Merge pull request #11812 from baude/v34backportplaygen
Support selinux options with bind mounts play/gen
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/generate_kube_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/generate_kube_test.go b/test/e2e/generate_kube_test.go index cb556991c..cb987e139 100644 --- a/test/e2e/generate_kube_test.go +++ b/test/e2e/generate_kube_test.go @@ -6,6 +6,8 @@ import ( "path/filepath" "strconv" + "github.com/containers/podman/v3/libpod/define" + "github.com/containers/podman/v3/pkg/util" . "github.com/containers/podman/v3/test/utils" "github.com/ghodss/yaml" @@ -555,6 +557,15 @@ var _ = Describe("Podman generate kube", func() { kube.WaitWithDefaultTimeout() Expect(kube).Should(Exit(0)) + b, err := ioutil.ReadFile(outputFile) + Expect(err).ShouldNot(HaveOccurred()) + pod := new(v1.Pod) + err = yaml.Unmarshal(b, pod) + Expect(err).To(BeNil()) + val, found := pod.Annotations[define.BindMountPrefix+vol1] + Expect(found).To(BeTrue()) + Expect(val).To(HaveSuffix("z")) + rm := podmanTest.Podman([]string{"pod", "rm", "-f", "test1"}) rm.WaitWithDefaultTimeout() Expect(rm).Should(Exit(0)) |