mirror of https://github.com/containers/podman.git
				
				
				
			
		
			
				
	
	
		
			12 lines
		
	
	
		
			295 B
		
	
	
	
		
			Bash
		
	
	
	
			
		
		
	
	
			12 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
 |