From a4ffed91da4b7dca459edd5b187dc587dee1086d Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Wed, 9 Sep 2020 18:50:17 +0800 Subject: fix APIv2 pods top of non-exist pod gets two response value Signed-off-by: zhangguanzhang --- test/apiv2/40-pods.at | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/apiv2/40-pods.at') 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" -- cgit v1.2.3-54-g00ecf