spiegel_podman/test/apiv2/19-stats.at
Boaz Shuster 5c7d50f08c Fix: display online_cpus in compat REST API
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
2023-05-31 07:41:30 +03:00

11 lines
295 B
Bash

# -*- sh -*-
#
# test 'stats' endpoints
#
if root; then
podman run -dt --name container1 --cpuset-cpus=0 $IMAGE top &>/dev/null
# regression for https://github.com/containers/podman/issues/15754
t GET libpod/containers/container1/stats?stream=false 200 .cpu_stats.online_cpus=1
fi