mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-16 13:49:33 +00:00
11 lines
295 B
Bash
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
|