diff options
author | umohnani8 <umohnani@redhat.com> | 2018-06-29 12:34:35 -0400 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-29 19:56:12 +0000 |
commit | 4c8c000f3aa0b25577338f805a07c16518890b3d (patch) | |
tree | 356649bd991033c4db83f9ebb66c840d021f8a12 /test/e2e | |
parent | 7fc1a329bd014d61f9895fc212aef452f6fb8f84 (diff) | |
download | podman-4c8c000f3aa0b25577338f805a07c16518890b3d.tar.gz podman-4c8c000f3aa0b25577338f805a07c16518890b3d.tar.bz2 podman-4c8c000f3aa0b25577338f805a07c16518890b3d.zip |
Fix built-in volume issue with podman run/create
The destination path of the built-in volume was not being created
but a relabel was being attempted on it, this was causing issues
with all images that have built-in volumes.
This patch fixes that and ensures the destination volume path
is created.
Signed-off-by: umohnani8 <umohnani@redhat.com>
Closes: #1026
Approved by: mheon
Diffstat (limited to 'test/e2e')
-rw-r--r-- | test/e2e/run_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/e2e/run_test.go b/test/e2e/run_test.go index 34ed55941..76269031d 100644 --- a/test/e2e/run_test.go +++ b/test/e2e/run_test.go @@ -476,4 +476,23 @@ var _ = Describe("Podman run", func() { session.WaitWithDefaultTimeout() Expect(session.ExitCode()).To(Equal(100)) }) + + It("podman run with built-in volume image", func() { + session := podmanTest.Podman([]string{"run", "--rm", "docker.io/library/redis:alpine", "ls"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session = podmanTest.Podman([]string{"rmi", "docker.io/library/redis:alpine"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + + session = podmanTest.Podman([]string{"run", "--rm", "-e", "MYSQL_USER=zmuser", "-e", "MYSQL_PASSWORD=zmpass", "-e", "MYSQL_DATABASE=zm", "-e", "MYSQL_ROOT_PASSWORD=mysqlpassword", "docker.io/centos/mariadb-101-centos7", "ls", "-al", "/var/lib/mysql/data"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + Expect(session.OutputToString()).To(ContainSubstring("mysql root")) + + session = podmanTest.Podman([]string{"rmi", "docker.io/centos/mariadb-101-centos7"}) + session.WaitWithDefaultTimeout() + Expect(session.ExitCode()).To(Equal(0)) + }) }) |