diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-04-12 12:33:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-12 12:33:20 +0200 |
commit | 3b03ff7d1ea65c31ca8c9a28e70f7dd5a43afbf0 (patch) | |
tree | b685921f06c17b17dd1825e3692eb8e741a685d7 /test/e2e/unshare_test.go | |
parent | 0d9b1b832cc668bf69463e4077a1dc3dc3c1e82e (diff) | |
parent | 0a39ad196cf4af601b0ea32b2c0e0490c9079377 (diff) | |
download | podman-3b03ff7d1ea65c31ca8c9a28e70f7dd5a43afbf0.tar.gz podman-3b03ff7d1ea65c31ca8c9a28e70f7dd5a43afbf0.tar.bz2 podman-3b03ff7d1ea65c31ca8c9a28e70f7dd5a43afbf0.zip |
Merge pull request #9950 from Luap99/unshare-rootless-cni
podman unshare: add --rootless-cni to join the ns
Diffstat (limited to 'test/e2e/unshare_test.go')
-rw-r--r-- | test/e2e/unshare_test.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/e2e/unshare_test.go b/test/e2e/unshare_test.go index 515b3a42e..24ab98916 100644 --- a/test/e2e/unshare_test.go +++ b/test/e2e/unshare_test.go @@ -49,4 +49,11 @@ var _ = Describe("Podman unshare", func() { ok, _ := session.GrepString(userNS) Expect(ok).To(BeFalse()) }) + + It("podman unshare --rootles-cni", func() { + session := podmanTest.Podman([]string{"unshare", "--rootless-cni", "ip", "addr"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring("tap0")) + }) }) |