summaryrefslogtreecommitdiff
path: root/test/apiv2/test-apiv2
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-07-13 19:29:16 +0000
committerGitHub <noreply@github.com>2022-07-13 19:29:16 +0000
commit5c3eec55895c9ca4c36571e1e919f0cb8632bedb (patch)
tree711c52400d7bfa70c053cfde9a63d013d3e08bcd /test/apiv2/test-apiv2
parent5f8d08d593d625beaa224c48e7da945c4f90ea48 (diff)
parente08a77ce64eec5cd0192ae1970fa859c00440174 (diff)
downloadpodman-5c3eec55895c9ca4c36571e1e919f0cb8632bedb.tar.gz
podman-5c3eec55895c9ca4c36571e1e919f0cb8632bedb.tar.bz2
podman-5c3eec55895c9ca4c36571e1e919f0cb8632bedb.zip
Merge pull request #14772 from nicrowe00/12475
Add "podman kube play" cmd
Diffstat (limited to 'test/apiv2/test-apiv2')
-rwxr-xr-xtest/apiv2/test-apiv24
1 files changed, 3 insertions, 1 deletions
diff --git a/test/apiv2/test-apiv2 b/test/apiv2/test-apiv2
index 0fd282854..0c3c6e672 100755
--- a/test/apiv2/test-apiv2
+++ b/test/apiv2/test-apiv2
@@ -252,7 +252,7 @@ function t() {
fi
# POST and PUT requests may be followed by one or more key=value pairs.
# Slurp the command line until we see a 3-digit status code.
- if [[ $method = "POST" || $method == "PUT" ]]; then
+ if [[ $method = "POST" || $method == "PUT" || $method = "DELETE" ]]; then
local -a post_args
for arg; do
case "$arg" in
@@ -261,6 +261,8 @@ function t() {
*.tar) curl_args+=(--data-binary @$arg);
content_type="application/x-tar";
shift;;
+ *.yaml) curl_args+=(--data-binary @$arg);
+ shift;;
application/*) content_type="$arg";
shift;;
[1-9][0-9][0-9]) break;;