diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-09-22 09:53:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-22 09:53:46 -0400 |
commit | 8f19efb51951c9f88e8def089c9d2e6446d4af01 (patch) | |
tree | 5227f6c65e7469f6f129f7d38d7ba4eb1d47e16c /test | |
parent | 7910bfd7c1f93a9bac73ae855a1eb6b63aa642a2 (diff) | |
parent | 49c5688a30ac29b258196d0be73cc7f09a9705cb (diff) | |
download | podman-8f19efb51951c9f88e8def089c9d2e6446d4af01.tar.gz podman-8f19efb51951c9f88e8def089c9d2e6446d4af01.tar.bz2 podman-8f19efb51951c9f88e8def089c9d2e6446d4af01.zip |
Merge pull request #11678 from vrothberg/fix-11613
podman save: add `--uncompressed`
Diffstat (limited to 'test')
-rw-r--r-- | test/system/120-load.bats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/system/120-load.bats b/test/system/120-load.bats index 97ea0f528..f2f9bf4d4 100644 --- a/test/system/120-load.bats +++ b/test/system/120-load.bats @@ -183,4 +183,16 @@ verify_iid_and_name() { run_podman rmi -f $img1 $img2 } +@test "podman save --oci-accept-uncompressed-layers" { + archive=$PODMAN_TMPDIR/myimage-$(random_string 8).tar + untar=$PODMAN_TMPDIR/myuntar-$(random_string 8) + mkdir -p $untar + + # Create a tarball, unpack it and make sure the layers are uncompressed. + run_podman save -o $archive --format oci-archive --uncompressed $IMAGE + run tar -C $untar -xvf $archive + run file $untar/blobs/sha256/* + is "$output" ".*POSIX tar archive" "layers are uncompressed" +} + # vim: filetype=sh |