10
t GET libpod/images/json 200 \
11
.[0].Id~[0-9a-f]\\{64\\}
12
iid=$(jq -r '.[0].Id' <<<"$output")
15
t GET libpod/images/$IMAGE/tree 200 \
19
t POST "libpod/images/nonesuch/tag?repo=myrepo&tag=mytag" 404
22
t POST "libpod/images/$IMAGE/tag?repo=localhost:$REGISTRY_PORT/myrepo&tag=mytag" 201
24
t GET libpod/images/$IMAGE/json 200 \
25
.RepoTags[0]=localhost:$REGISTRY_PORT/myrepo:mytag
28
t POST "/v1.40/images/localhost:$REGISTRY_PORT/myrepo/push?tag=mytag" 500 \
29
.error~".*x509: certificate signed by unknown authority"
30
t POST "images/localhost:$REGISTRY_PORT/myrepo/push?tlsVerify=false&tag=mytag" 200 \
36
readarray lines <<<"$output"
37
s0=$(jq -r .status <<<"${lines[0]}")
38
is "$s0" "The push refers to repository [localhost:$REGISTRY_PORT/myrepo:mytag]" \
39
"Push to local registry: first status line"
42
s1=$(jq -r .status <<<"${lines[1]}")
43
like "$s1" "mytag: digest: sha256:[0-9a-f]\{64\} size: [0-9]\+" \
44
"Push to local registry: second status line"
48
t POST "libpod/images/$IMAGE/tag?repo=localhost:$REGISTRY_PORT/myrepo&tag=quiet-false" 201
50
t POST "libpod/images/localhost:$REGISTRY_PORT/myrepo:quiet-false/push?tlsVerify=false&quiet=false" 200
55
readarray lines <<<"$output"
56
s0=$(jq -r .manifestdigest <<<"${lines[-1]}")
57
like "$s0" "sha256:[0-9a-f]\{64\}" \
58
"Push to local registry: last line in push report"
61
t POST "libpod/images/$iid/untag?repo=localhost:$REGISTRY_PORT/myrepo&tag=mytag" 201
62
t POST "libpod/images/$iid/untag?repo=localhost:$REGISTRY_PORT/myrepo&tag=quiet-false" 201
65
t POST "images/localhost:$REGISTRY_PORT/idonotexist/push?tlsVerify=false" 404
67
t GET libpod/images/$IMAGE/json 200 \
71
t DELETE libpod/images/$IMAGE 200 \
78
conn=apiv2test-temp-connection
79
podman system connection add --default $conn \
80
ssh://$USER@localhost/run/user/$UID/podman/podman.sock
84
t POST "libpod/images/scp/$IMAGE?destination=QA::" 500 \
85
.cause="exit status 125"
86
t DELETE libpod/images/$IMAGE 200 \
90
podman system connection rm $conn
96
podman manifest create foobar
97
t GET libpod/images/json 200 \ .[0].IsManifestList=true \
105
t GET libpod/images/json 200 \ .[0].IsManifestList=true\
108
'.[0].RepoDigests | length=1' \
109
.[1].IsManifestList=false \
116
podman manifest add --arch amd64 foobar $IMAGE
117
t GET libpod/images/json 200 .[0].IsManifestList=true\
120
'.[0].RepoDigests | length=2' \
121
.[1].IsManifestList=false \
125
t GET images/json 200 .[0].IsManifestList=null \
128
.[1].IsManifestList=null \