aboutsummaryrefslogtreecommitdiff
path: root/test/apiv2
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-09-09 18:50:17 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-09-09 18:50:17 +0800
commita4ffed91da4b7dca459edd5b187dc587dee1086d (patch)
treecbe779f05449e6969d649b31a0842d495991021b /test/apiv2
parent3352e8b0e6bb77344a4470ef86b2d2dc6262a668 (diff)
downloadpodman-a4ffed91da4b7dca459edd5b187dc587dee1086d.tar.gz
podman-a4ffed91da4b7dca459edd5b187dc587dee1086d.tar.bz2
podman-a4ffed91da4b7dca459edd5b187dc587dee1086d.zip
fix APIv2 pods top of non-exist pod gets two response value
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'test/apiv2')
-rw-r--r--test/apiv2/40-pods.at4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/apiv2/40-pods.at b/test/apiv2/40-pods.at
index 3df541de5..fdb61a84d 100644
--- a/test/apiv2/40-pods.at
+++ b/test/apiv2/40-pods.at
@@ -102,6 +102,10 @@ t GET libpod/pods/stats?namesOrIDs=fakename 404 \
t DELETE libpod/pods/bar?force=true 200
+# test the fake name
+t GET libpod/pods/fakename/top 404 \
+ .cause="no such pod"
+
t GET libpod/pods/foo/top 200 \
.Processes[0][-1]="/pause " \
.Titles[-1]="COMMAND"