mirror of
https://github.com/containers/podman.git
synced 2025-12-19 07:09:39 +08:00
Merge pull request #15867 from boaz0/closes_15754
Fix: display online_cpus in compat REST API
This commit is contained in:
11
test/apiv2/19-stats.at
Normal file
11
test/apiv2/19-stats.at
Normal 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
|
||||
Reference in New Issue
Block a user