aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2022-02-21 12:59:38 -0500
committerGitHub <noreply@github.com>2022-02-21 12:59:38 -0500
commit4ad98b9fd3519ef901430c35d74b1dc7e65f9d84 (patch)
tree9045cc622fffb057c25fbb8b579f4a493e1562d8
parentad47fa2d6755c7edc0cdb8a5e9fde794ed615739 (diff)
parentf018c07edfb4d83b7c97e98223a4a7a56fd12d8b (diff)
downloadpodman-4ad98b9fd3519ef901430c35d74b1dc7e65f9d84.tar.gz
podman-4ad98b9fd3519ef901430c35d74b1dc7e65f9d84.tar.bz2
podman-4ad98b9fd3519ef901430c35d74b1dc7e65f9d84.zip
Merge pull request #13307 from edsantiago/bats_info
System tests: show one-line config overview
-rw-r--r--test/system/001-basic.bats17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/system/001-basic.bats b/test/system/001-basic.bats
index 9b0a71285..e36142188 100644
--- a/test/system/001-basic.bats
+++ b/test/system/001-basic.bats
@@ -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