summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2022-06-21 15:58:07 +0000
committerGitHub <noreply@github.com>2022-06-21 15:58:07 +0000
commit79eb467325dc8ff50fecce1f69b17181168fb945 (patch)
tree32441312c4f21a1461feceb7361025fc7595b6a5 /test
parent1cf19843d0f6b36597ac1537cc730069282e7353 (diff)
parent1f539a26417bf5e76604361c1ea2841941809359 (diff)
downloadpodman-79eb467325dc8ff50fecce1f69b17181168fb945.tar.gz
podman-79eb467325dc8ff50fecce1f69b17181168fb945.tar.bz2
podman-79eb467325dc8ff50fecce1f69b17181168fb945.zip
Merge pull request #14677 from giuseppe/memory-limit-ctr-handlers
api: show the memory limit specified for the container
Diffstat (limited to 'test')
-rw-r--r--test/apiv2/20-containers.at11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/apiv2/20-containers.at b/test/apiv2/20-containers.at
index 383c527b4..2f48e188e 100644
--- a/test/apiv2/20-containers.at
+++ b/test/apiv2/20-containers.at
@@ -95,6 +95,17 @@ fi
t DELETE libpod/containers/$cid 200 .[0].Id=$cid
+# Issue #14676: make sure the stats show the memory limit specified for the container
+if root; then
+ CTRNAME=ctr-with-limit
+ podman run --name $CTRNAME -d -m 512m -v /tmp:/tmp $IMAGE top
+
+ t GET libpod/containers/$CTRNAME/stats?stream=false 200 \
+ .memory_stats.limit=536870912
+
+ podman rm -f $CTRNAME
+fi
+
# Issue #6799: it should be possible to start a container, even w/o args.
t POST libpod/containers/create?name=test_noargs Image=${IMAGE} 201 \
.Id~[0-9a-f]\\{64\\}