summaryrefslogtreecommitdiff
path: root/test/e2e/load_test.go
diff options
context:
space:
mode:
authorumohnani8 <umohnani@redhat.com>2018-03-08 14:59:19 -0500
committerAtomic Bot <atomic-devel@projectatomic.io>2018-03-08 21:23:53 +0000
commit713c08630beff2c3ce4eabeab6dbf5b6dd6fff45 (patch)
tree257fbd01023c2584e35919024df073adcf59adca /test/e2e/load_test.go
parent9afa1f741640694cfdda0156f5ceab5564d1d53c (diff)
downloadpodman-713c08630beff2c3ce4eabeab6dbf5b6dd6fff45.tar.gz
podman-713c08630beff2c3ce4eabeab6dbf5b6dd6fff45.tar.bz2
podman-713c08630beff2c3ce4eabeab6dbf5b6dd6fff45.zip
Podman load can pull in compressed files
Podman load can now load in docker-archive files that are compressed. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #468 Approved by: baude
Diffstat (limited to 'test/e2e/load_test.go')
-rw-r--r--test/e2e/load_test.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/e2e/load_test.go b/test/e2e/load_test.go
index e36883b16..e9c2d94ab 100644
--- a/test/e2e/load_test.go
+++ b/test/e2e/load_test.go
@@ -44,6 +44,26 @@ var _ = Describe("Podman load", func() {
Expect(result.ExitCode()).To(Equal(0))
})
+ It("podman load compressed tar file", func() {
+ outfile := filepath.Join(podmanTest.TempDir, "alpine.tar")
+
+ save := podmanTest.Podman([]string{"save", "-o", outfile, ALPINE})
+ save.WaitWithDefaultTimeout()
+ Expect(save.ExitCode()).To(Equal(0))
+
+ compress := podmanTest.SystemExec("gzip", []string{outfile})
+ compress.WaitWithDefaultTimeout()
+ outfile = outfile + ".gz"
+
+ rmi := podmanTest.Podman([]string{"rmi", ALPINE})
+ rmi.WaitWithDefaultTimeout()
+ Expect(rmi.ExitCode()).To(Equal(0))
+
+ result := podmanTest.Podman([]string{"load", "-i", outfile})
+ result.WaitWithDefaultTimeout()
+ Expect(result.ExitCode()).To(Equal(0))
+ })
+
It("podman load oci-archive image", func() {
outfile := filepath.Join(podmanTest.TempDir, "alpine.tar")