summaryrefslogtreecommitdiff
path: root/test/apiv2/README.md
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-03-11 15:52:19 -0500
committerGitHub <noreply@github.com>2021-03-11 15:52:19 -0500
commit81737b37738dfa21be3cf9775919458523511ae9 (patch)
tree20fe81671ccaa59debf1b108212c78cacb394808 /test/apiv2/README.md
parent8d33bfabaa20612718d909494c2ceec26482d279 (diff)
parent258749e43dc8c2e842f96f8672823b0fa4e5a147 (diff)
downloadpodman-81737b37738dfa21be3cf9775919458523511ae9.tar.gz
podman-81737b37738dfa21be3cf9775919458523511ae9.tar.bz2
podman-81737b37738dfa21be3cf9775919458523511ae9.zip
Merge pull request #9686 from edsantiago/apiv2_jsonify
apiv2 tests: finally fix POST as originally intended
Diffstat (limited to 'test/apiv2/README.md')
-rw-r--r--test/apiv2/README.md11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/apiv2/README.md b/test/apiv2/README.md
index 252d6454e..19727cec7 100644
--- a/test/apiv2/README.md
+++ b/test/apiv2/README.md
@@ -52,9 +52,14 @@ Notes:
If there's no leading slash, `t` prepends `/v1.40`. This is a simple
convenience for simplicity of writing tests.
-* When method is POST, the argument after the endpoint must be a series
-of POST arguments in the form 'key=value', separated by commas. `t` will
-convert those to JSON form for passing to the server.
+* When method is POST, the argument(s) after the endpoint may be a series
+of POST parameters in the form 'key=value', separated by spaces:
+ t POST myentrypoint 200 ! no params
+ t POST myentrypoint id=$id 200 ! just one
+ t POST myentrypoint id=$id filter='{"foo":"bar"}' 200 ! two, with json
+ 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.
* 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