diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2018-12-04 07:49:06 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-04 07:49:06 -0800 |
commit | 6c060b1ca45bfb96c71e7f2114f1f31f53d0084b (patch) | |
tree | e53e04da83ac3c4def3118025f50e35fc836f83f /test/e2e/create_test.go | |
parent | 5f6ad82524ca7a3281c8464c84b4f9be4ff90aef (diff) | |
parent | 9c359a31d542074ff686a2f9ad29deee73e92d79 (diff) | |
download | podman-6c060b1ca45bfb96c71e7f2114f1f31f53d0084b.tar.gz podman-6c060b1ca45bfb96c71e7f2114f1f31f53d0084b.tar.bz2 podman-6c060b1ca45bfb96c71e7f2114f1f31f53d0084b.zip |
Merge pull request #1907 from baude/createpodautomatically
create pod on the fly
Diffstat (limited to 'test/e2e/create_test.go')
-rw-r--r-- | test/e2e/create_test.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/e2e/create_test.go b/test/e2e/create_test.go index 366a58f02..684a7cd88 100644 --- a/test/e2e/create_test.go +++ b/test/e2e/create_test.go @@ -189,4 +189,15 @@ var _ = Describe("Podman create", func() { Expect(session.ExitCode()).To(Equal(0)) Expect(session.OutputToString()).To(ContainSubstring("/create/test rw,nosuid,nodev,noexec,relatime - tmpfs")) }) + + It("podman create --pod automatically", func() { + session := podmanTest.Podman([]string{"create", "--pod", "new:foobar", ALPINE, "ls"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + check := podmanTest.Podman([]string{"pod", "ps", "--no-trunc"}) + check.WaitWithDefaultTimeout() + match, _ := check.GrepString("foobar") + Expect(match).To(BeTrue()) + }) }) |