Merge pull request #15867 from boaz0/closes_15754

Fix: display online_cpus in compat REST API
This commit is contained in:
OpenShift Merge Robot
2023-06-01 11:03:14 -04:00
committed by GitHub
5 changed files with 42 additions and 1 deletions

11
test/apiv2/19-stats.at Normal file
View File

@@ -0,0 +1,11 @@
# -*- 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