diff options
author | Aditya R <arajan@redhat.com> | 2022-05-16 11:19:56 +0530 |
---|---|---|
committer | Aditya R <arajan@redhat.com> | 2022-05-16 22:01:39 +0530 |
commit | 6f9155cbb377917fab893ea5a7b9da8479ec70f5 (patch) | |
tree | 8ad9d54aa9ca518d46bce4007614958b567f739a /test/apiv2 | |
parent | bde8dba877fe97130faf9c8bee678b9cfc23219a (diff) | |
download | podman-6f9155cbb377917fab893ea5a7b9da8479ec70f5.tar.gz podman-6f9155cbb377917fab893ea5a7b9da8479ec70f5.tar.bz2 podman-6f9155cbb377917fab893ea5a7b9da8479ec70f5.zip |
api: make no-op remote functional in /libpod/build
Podman API `libpod/build` accepts paramemter `remote` which overrides
`dockerfile` but currently parameter is no-op. Following commit adds
support for `remote` parameter in libpod API.
See: https://docs.podman.io/en/v3.2.3/_static/api.html#operation/ImageBuildLibpod
Closes: https://github.com/containers/podman/issues/13831
Signed-off-by: Aditya R <arajan@redhat.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r-- | test/apiv2/10-images.at | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at index 9526183e3..a994f8e11 100644 --- a/test/apiv2/10-images.at +++ b/test/apiv2/10-images.at @@ -190,6 +190,10 @@ t POST "libpod/build?dockerfile=containerfile" $CONTAINERFILE_TAR application/js t POST "build?dockerfile=containerfile" $CONTAINERFILE_TAR application/json 200 \ .stream~"STEP 1/1: FROM $IMAGE" +# Libpod: allow building from url: https://github.com/alpinelinux/docker-alpine.git and must ignore any provided tar +t POST "libpod/build?remote=https%3A%2F%2Fgithub.com%2Falpinelinux%2Fdocker-alpine.git" $CONTAINERFILE_TAR 200 \ + .stream~"STEP 1/5: FROM alpine:3.14" + # Build api response header must contain Content-type: application/json t POST "build?dockerfile=containerfile" $CONTAINERFILE_TAR application/json 200 response_headers=$(cat "$WORKDIR/curl.headers.out") |