Skip to content

Commit

Permalink
Merge pull request containers#13307 from edsantiago/bats_info
Browse files Browse the repository at this point in the history
System tests: show one-line config overview
  • Loading branch information
openshift-merge-robot committed Feb 21, 2022
2 parents ad47fa2 + f018c07 commit 4ad98b9
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/system/001-basic.bats
Expand Up @@ -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
Expand Down

0 comments on commit 4ad98b9

Please sign in to comment.