diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-02-07 10:34:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-07 10:34:22 -0500 |
commit | 46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3 (patch) | |
tree | d60b025f346fd4651283522fea65b881df4bed6f /test | |
parent | 30b076b98731e87067092e45e58d826ef839003a (diff) | |
parent | 3b561a468232c18c63d98920ce2812721d853f29 (diff) | |
download | podman-46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3.tar.gz podman-46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3.tar.bz2 podman-46d9a2570ad3eb4f1d7fe0928927e644ebe8a2a3.zip |
Merge pull request #13156 from flouthoc/fix-compat-build-response-header
compat: endpoint `/build` must set header `content type` as `application/json` in response header.
Diffstat (limited to 'test')
-rw-r--r-- | test/apiv2/10-images.at | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/apiv2/10-images.at b/test/apiv2/10-images.at index 673858a3c..9526183e3 100644 --- a/test/apiv2/10-images.at +++ b/test/apiv2/10-images.at @@ -190,6 +190,11 @@ 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" +# 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") +like "$response_headers" ".*application/json.*" "header does not contains application/json" + # PR #12091: output from compat API must now include {"aux":{"ID":"sha..."}} t POST "build?dockerfile=containerfile" $CONTAINERFILE_TAR 200 \ '.aux|select(has("ID")).ID~^sha256:[0-9a-f]\{64\}$' |