diff options
author | Ed Santiago <santiago@redhat.com> | 2022-08-25 08:23:14 -0600 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2022-08-25 11:07:11 -0600 |
commit | e634470fae851325661f6dc1d714872cc567d306 (patch) | |
tree | eca8a146e10f38142bfcbb74e16449d8eb409112 /test/apiv2/70-short-names.at | |
parent | f98215c668746e9a7b9603448428cd1301a56eac (diff) | |
download | podman-e634470fae851325661f6dc1d714872cc567d306.tar.gz podman-e634470fae851325661f6dc1d714872cc567d306.tar.bz2 podman-e634470fae851325661f6dc1d714872cc567d306.zip |
APIv2 test cleanup, part 2 of 2
This finishes the removal of curls and exits.
Please please please, everyone, if you see a 'curl' or 'exit'
in any new PR, reject the PR and tell me immediately so I can
help the developer do it the proper way.
Also, removed some very-very-wrong USER/UID code. Both are
reserved variables in bash. You cannot override them.
Also, added a cleanup to a system-connection test. I wasted
a lot of time because my podman-remote stopped working, all
because I had run this test as part of something unrelated.
Also, found and fixed dangerously-broken timeout code.
Implemented a new mechanism for requiring a timeout.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/apiv2/70-short-names.at')
-rw-r--r-- | test/apiv2/70-short-names.at | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/test/apiv2/70-short-names.at b/test/apiv2/70-short-names.at index bd7f8e7bd..95cf0e1d0 100644 --- a/test/apiv2/70-short-names.at +++ b/test/apiv2/70-short-names.at @@ -33,18 +33,8 @@ RUN touch /foo EOF tar --format=posix -C $TMPD -cvf ${CONTAINERFILE_TAR} containerfile &> /dev/null - curl -XPOST --data-binary @<(cat $CONTAINERFILE_TAR) \ - -H "content-type: application/x-tar" \ - --dump-header "${TMPD}/headers.txt" \ - -o "${TMPD}/response.txt" \ - "http://$HOST:$PORT/build?dockerfile=containerfile&t=$tag" &> /dev/null - - if ! grep -q '200 OK' "${TMPD}/headers.txt"; then - cat "${TMPD}/headers.txt" - cat "${TMPD}/response.txt" - echo -e "${red}NOK: Image build from tar failed response was not 200 OK (application/x-tar)" - exit 1 - fi + t POST "/build?dockerfile=containerfile&t=$tag" $CONTAINERFILE_TAR 200 \ + .stream~".*Successfully tagged .*" rm -rf $TMPD t DELETE "images/$fqn" 200 |