Skip to content

Commit

Permalink
Update the expected default compression algorithm
Browse files Browse the repository at this point in the history
Signed-off-by: Miloslav Trmač <[email protected]>
  • Loading branch information
mtrmac committed Dec 14, 2024
1 parent 3b79705 commit 29b9c44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/system/800-config.bats
Original file line number Diff line number Diff line change
Expand Up @@ -255,17 +255,17 @@ EOF
skip_if_remote "containers.conf does not effect client side of --remote"

CONTAINERS_CONF=/dev/null run_podman push --help
assert "$output" =~ "--compression-format string.*compression format to use \(default \"gzip\"\)" "containers.conf should set default to gzip"
assert "$output" =~ "--compression-format string.*compression format to use \(default \"zstd:chunked\"\)"
assert "$output" !~ "compression level to use \(default" "containers.conf should not set default compressionlevel"

conf_tmp="$PODMAN_TMPDIR/containers.conf"
cat >$conf_tmp <<EOF
[engine]
compression_format="zstd:chunked"
compression_format="zstd"
compression_level=1
EOF
CONTAINERS_CONF="$conf_tmp" run_podman push --help
assert "$output" =~ "--compression-format string.*compression format to use \(default \"zstd:chunked\"\)" "containers.conf should set default to zstd:chunked"
assert "$output" =~ "--compression-format string.*compression format to use \(default \"zstd\"\)"
assert "$output" =~ "--compression-level int.*compression level to use \(default 1\)" "containers.conf should set default compressionlevel to 1"
}

Expand Down

0 comments on commit 29b9c44

Please sign in to comment.