mirror of
https://github.com/containers/podman.git
synced 2025-09-28 17:25:31 +08:00
Merge pull request #13307 from edsantiago/bats_info
System tests: show one-line config overview
This commit is contained in:
@ -33,6 +33,23 @@ function setup() {
|
||||
fi
|
||||
}
|
||||
|
||||
@test "podman info" {
|
||||
# These will be displayed on the test output stream, offering an
|
||||
# at-a-glance overview of important system configuration details
|
||||
local -a want=(
|
||||
'Arch:{{.Host.Arch}}'
|
||||
'OS:{{.Host.Distribution.Distribution}}{{.Host.Distribution.Version}}'
|
||||
'Runtime:{{.Host.OCIRuntime.Name}}'
|
||||
'Rootless:{{.Host.Security.Rootless}}'
|
||||
'Events:{{.Host.EventLogger}}'
|
||||
'Logdriver:{{.Host.LogDriver}}'
|
||||
'Cgroups:{{.Host.CgroupsVersion}}+{{.Host.CgroupManager}}'
|
||||
'Net:{{.Host.NetworkBackend}}'
|
||||
)
|
||||
run_podman info --format "$(IFS='/' echo ${want[@]})"
|
||||
echo "# $output" >&3
|
||||
}
|
||||
|
||||
|
||||
@test "podman --context emits reasonable output" {
|
||||
# All we care about here is that the command passes
|
||||
|
Reference in New Issue
Block a user