summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-02-12 12:56:19 +0100
committerGitHub <noreply@github.com>2020-02-12 12:56:19 +0100
commit4f44a1a3a26f4cb82efc6a727586f721ebf505ca (patch)
tree297cc609f9b5d3af7fb1e2228b581bed8fceb1fe /test/apiv2/20-containers.at
parentd0452ae6f3e3bd664ad45ef13ed5da1a8c09006b (diff)
parent0af16eb15b54726c2b16fe1ba936a943ded0a219 (diff)
downloadpodman-4f44a1a3a26f4cb82efc6a727586f721ebf505ca.tar.gz
podman-4f44a1a3a26f4cb82efc6a727586f721ebf505ca.tar.bz2
podman-4f44a1a3a26f4cb82efc6a727586f721ebf505ca.zip
Merge pull request #5165 from edsantiago/test_apiv2
API v2 tests: catch up to moving target
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r--test/apiv2/20-containers.at16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 5f0a145f0..a69e8cc99 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -11,18 +11,22 @@ podman pull $IMAGE &>/dev/null
# Ensure clean slate
podman rm -a -f &>/dev/null
-t GET libpod/containers/json 200 []
+t GET libpod/containers/json 200 length=0
podman run $IMAGE true
-t GET libpod/containers/json 200 \
- .[0].ID~[0-9a-f]\\{12\\} \
+t GET libpod/containers/json 200 length=0
+
+t GET libpod/containers/json?all=true 200 \
+ length=1 \
+ .[0].Id~[0-9a-f]\\{12\\} \
.[0].Image=$IMAGE \
- .[0].Command=true \
- .[0].State=4 \
+ .[0].Command[0]="true" \
+ .[0].State=exited \
+ .[0].ExitCode=0 \
.[0].IsInfra=false
-cid=$(jq -r '.[0].ID' <<<"$output")
+cid=$(jq -r '.[0].Id' <<<"$output")
t DELETE libpod/containers/$cid 204