summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-05-17 14:19:45 +0200
committerGitHub <noreply@github.com>2022-05-17 14:19:45 +0200
commit105c6c7dd15c4c8363107deb593017c8d1762b7b (patch)
treef32dfaf34d5c75d6f59eda9d2e584237dcd59278 /test
parent4a78992ac71547d39c61eadd5fafac0aa1cb57f9 (diff)
parent6f9155cbb377917fab893ea5a7b9da8479ec70f5 (diff)
downloadpodman-105c6c7dd15c4c8363107deb593017c8d1762b7b.tar.gz
podman-105c6c7dd15c4c8363107deb593017c8d1762b7b.tar.bz2
podman-105c6c7dd15c4c8363107deb593017c8d1762b7b.zip
Merge pull request #14254 from flouthoc/api-allow-remote
api: make no-op `remote` functional in `/libpod/build`
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/10-images.at4
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")