diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-12-14 22:30:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-14 22:30:56 +0100 |
commit | b01a421f3413ba01b2c189b82c8153bdbd2a05fb (patch) | |
tree | 6d00f8d4657325c3eef543adb8b1718b32e8c112 /test/apiv2/README.md | |
parent | c36fb8b1138b112ec3d53e5cf89a2fbcb12e6840 (diff) | |
parent | 0a2eb7b1857907f065a48a07a9a3096fa3cc5f77 (diff) | |
download | podman-b01a421f3413ba01b2c189b82c8153bdbd2a05fb.tar.gz podman-b01a421f3413ba01b2c189b82c8153bdbd2a05fb.tar.bz2 podman-b01a421f3413ba01b2c189b82c8153bdbd2a05fb.zip |
Merge pull request #12596 from edsantiago/apiv2_test_refactor
apiv2 tests: refactor complicated curls
Diffstat (limited to 'test/apiv2/README.md')
-rw-r--r-- | test/apiv2/README.md | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/apiv2/README.md b/test/apiv2/README.md index 19727cec7..63d1f5b13 100644 --- a/test/apiv2/README.md +++ b/test/apiv2/README.md @@ -60,6 +60,12 @@ of POST parameters in the form 'key=value', separated by spaces: t POST myentrypoint name=$name badparam='["foo","bar"]' 500 ! etc... `t` will convert the param list to JSON form for passing to the server. A numeric status code terminates processing of POST parameters. +** As a special case, when one POST argument is a string ending in `.tar`, +`t` will invoke `curl` with `--data-binary @PATH` and +set `Content-type: application/x-tar`. This is useful for `build` endpoints. +(To override `Content-type`, simply pass along an extra string argument +matching `application/*`): + t POST myentrypoint /mytmpdir/myfile.tar application/foo 400 * The final arguments are one or more expected string results. If an argument starts with a dot, `t` will invoke `jq` on the output to |