mirror of
https://github.com/containers/podman.git
synced 2025-10-17 19:24:04 +08:00
compat: add shared-size par to GET /images/json
Related: https://issues.redhat.com/browse/RUN-2698 Signed-off-by: Nicola Sella <nsella@redhat.com>
This commit is contained in:
@ -455,4 +455,11 @@ t GET images/json 200 \
|
||||
podman rmi -f $(< $IIDFILE)
|
||||
rm -f $IIDFILE
|
||||
|
||||
# check that SharedSize returns -1 for compat api if not set
|
||||
# and 0 (or the correct shared size) if set
|
||||
t GET images/json 200 \
|
||||
.[0].SharedSize=-1
|
||||
t GET images/json?shared-size=true 200 \
|
||||
.[0].SharedSize=0
|
||||
|
||||
# vim: filetype=sh
|
||||
|
Reference in New Issue
Block a user