diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-11-21 17:38:28 +0100 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2018-11-27 21:10:16 +0100 |
commit | 4203df69aca13f14e43ad32a9b7ffb6cfb8c1016 (patch) | |
tree | b1d255b5b9b92fa400b1a38a99694609501e4dbf /test/e2e | |
parent | 266c4952a89be89b1741f9fa69443f51387dd5c6 (diff) | |
download | podman-4203df69aca13f14e43ad32a9b7ffb6cfb8c1016.tar.gz podman-4203df69aca13f14e43ad32a9b7ffb6cfb8c1016.tar.bz2 podman-4203df69aca13f14e43ad32a9b7ffb6cfb8c1016.zip |
rootless: add new netmode "slirp4netns"
so that inspect reports the correct network configuration.
Closes: https://github.com/containers/libpod/issues/1453
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/rootless_test.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/e2e/rootless_test.go b/test/e2e/rootless_test.go index 995744ae5..9f84d4c13 100644 --- a/test/e2e/rootless_test.go +++ b/test/e2e/rootless_test.go @@ -217,6 +217,14 @@ var _ = Describe("Podman rootless", func() { cmd.WaitWithDefaultTimeout() Expect(cmd.ExitCode()).To(Equal(0)) + if len(args) == 0 { + cmd = rootlessTest.PodmanAsUser([]string{"inspect", "-l"}, 1000, 1000, env) + cmd.WaitWithDefaultTimeout() + Expect(cmd.ExitCode()).To(Equal(0)) + data := cmd.InspectContainerToJSON() + Expect(data[0].HostConfig.NetworkMode).To(ContainSubstring("slirp4netns")) + } + if !canUseExec { Skip("ioctl(NS_GET_PARENT) not supported.") } |