diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2019-03-03 07:12:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-03 07:12:12 -0800 |
commit | f3a3d8e28e4b8ec06dd11ec156c10e243165f19d (patch) | |
tree | 716b5088d5f97ee85dc0adf19e43622044a41b5d /test/e2e/mount_test.go | |
parent | 9adcda73892fa0a33cbdf971ad97cf079e8e425f (diff) | |
parent | d231cfba92ef440404f936a2cb0a64503b9c8c46 (diff) | |
download | podman-f3a3d8e28e4b8ec06dd11ec156c10e243165f19d.tar.gz podman-f3a3d8e28e4b8ec06dd11ec156c10e243165f19d.tar.bz2 podman-f3a3d8e28e4b8ec06dd11ec156c10e243165f19d.zip |
Merge pull request #2477 from rhatdan/test
Add tests to make sure podman container and podman image commands work
Diffstat (limited to 'test/e2e/mount_test.go')
-rw-r--r-- | test/e2e/mount_test.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/e2e/mount_test.go b/test/e2e/mount_test.go index 94218e6a9..bf0442de2 100644 --- a/test/e2e/mount_test.go +++ b/test/e2e/mount_test.go @@ -49,6 +49,21 @@ var _ = Describe("Podman mount", func() { Expect(umount.ExitCode()).To(Equal(0)) }) + It("podman container mount", func() { + setup := podmanTest.Podman([]string{"container", "create", ALPINE, "ls"}) + setup.WaitWithDefaultTimeout() + Expect(setup.ExitCode()).To(Equal(0)) + cid := setup.OutputToString() + + mount := podmanTest.Podman([]string{"container", "mount", cid}) + mount.WaitWithDefaultTimeout() + Expect(mount.ExitCode()).To(Equal(0)) + + umount := podmanTest.Podman([]string{"container", "umount", cid}) + umount.WaitWithDefaultTimeout() + Expect(umount.ExitCode()).To(Equal(0)) + }) + It("podman mount with json format", func() { setup := podmanTest.Podman([]string{"create", ALPINE, "ls"}) setup.WaitWithDefaultTimeout() |