summaryrefslogtreecommitdiff
path: root/test/apiv2/12-imagesMore.at
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2021-02-08 19:17:38 +0100
committerMatej Vasek <mvasek@redhat.com>2021-02-09 18:20:15 +0100
commit721a1e104e388a788ab5760019fa91bcf1a5d762 (patch)
tree96b084b932fe554a671482685665c529a51a4d76 /test/apiv2/12-imagesMore.at
parent2bf13219f587d769400f26aeaed05930c34ce3d7 (diff)
downloadpodman-721a1e104e388a788ab5760019fa91bcf1a5d762.tar.gz
podman-721a1e104e388a788ab5760019fa91bcf1a5d762.tar.bz2
podman-721a1e104e388a788ab5760019fa91bcf1a5d762.zip
Fix Docker APIv2 push endpoint
Docker doesn't have the destination parameter as libpod does, the "image name" path parameter is supposed to be the destination. Signed-off-by: Matej Vasek <mvasek@redhat.com>
Diffstat (limited to 'test/apiv2/12-imagesMore.at')
-rw-r--r--test/apiv2/12-imagesMore.at7
1 files changed, 2 insertions, 5 deletions
diff --git a/test/apiv2/12-imagesMore.at b/test/apiv2/12-imagesMore.at
index 896e685cd..d17df79a4 100644
--- a/test/apiv2/12-imagesMore.at
+++ b/test/apiv2/12-imagesMore.at
@@ -24,13 +24,10 @@ t GET libpod/images/$IMAGE/json 200 \
# Run registry container
podman run -d --name registry -p 5000:5000 quay.io/libpod/registry:2.6 /entrypoint.sh /etc/docker/registry/config.yml
+sleep 2
# Push to local registry
-# FIXME: this is failing:
-# "cause": "received unexpected HTTP status: 500 Internal Server Error",
-# "message": "error pushing image \"localhost:5000/myrepo:mytag\": error copying image to the remote destination: Error writing blob: Error initiating layer upload to /v2/myrepo/blobs/uploads/ in localhost:5000: received unexpected HTTP status: 500 Internal Server Error",
-# "response": 400
-#t POST libpod/images/localhost:5000/myrepo:mytag/push\?tlsVerify\=false '' 200
+t POST "images/localhost:5000/myrepo/push?tlsVerify=false&tag=mytag" '' 200
# Untag the image
t POST "libpod/images/$iid/untag?repo=localhost:5000/myrepo&tag=mytag" '' 201