summaryrefslogtreecommitdiff
path: root/test/apiv2/20-containers.at
diff options
context:
space:
mode:
authorzhangguanzhang <zhangguanzhang@qq.com>2020-10-05 19:25:45 +0800
committerzhangguanzhang <zhangguanzhang@qq.com>2020-10-06 11:15:25 +0800
commitadde67c74f265c2f4c9245b975d531dd635dce8e (patch)
tree9ebf70b23e8d24eba50ccffacee62f6744920c64 /test/apiv2/20-containers.at
parentea02d9c2668207523611efac67a1699f776c9147 (diff)
downloadpodman-adde67c74f265c2f4c9245b975d531dd635dce8e.tar.gz
podman-adde67c74f265c2f4c9245b975d531dd635dce8e.tar.bz2
podman-adde67c74f265c2f4c9245b975d531dd635dce8e.zip
fix apiv2 /containers/$name/json return wrong value in `.Config.StopSignal`
Signed-off-by: zhangguanzhang <zhangguanzhang@qq.com>
Diffstat (limited to 'test/apiv2/20-containers.at')
-rw-r--r--test/apiv2/20-containers.at8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 15b5dc4be..28289955a 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -216,12 +216,14 @@ t GET containers/$cid/json 200 \
.Config.WorkingDir="/data" # default is /data
t DELETE containers/$cid 204
-# test the WORKDIR
-t POST containers/create '"Image":"'$ENV_WORKDIR_IMG'","WorkingDir":"/dataDir"' 201 \
+# test the WORKDIR and StopSignal
+t POST containers/create '"Image":"'$ENV_WORKDIR_IMG'","WorkingDir":"/dataDir","StopSignal":"9"' 201 \
.Id~[0-9a-f]\\{64\\}
cid=$(jq -r '.Id' <<<"$output")
t GET containers/$cid/json 200 \
- .Config.WorkingDir="/dataDir"
+ .Config.WorkingDir="/dataDir" \
+ .Config.StopSignal="9"
+
t DELETE containers/$cid 204
# vim: filetype=sh