diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-27 09:59:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-27 09:59:25 -0400 |
commit | 89b4683cc4666f789ebc3d21453ef65e37775642 (patch) | |
tree | 52ab1e66783719993efacb5f1e365752fa191fc4 /test/system/200-pod.bats | |
parent | 9cb5c87284377507aafae8456ee8f00823954712 (diff) | |
parent | 1f8a78747aebf9c597f2bd93db5fc4c074286d38 (diff) | |
download | podman-89b4683cc4666f789ebc3d21453ef65e37775642.tar.gz podman-89b4683cc4666f789ebc3d21453ef65e37775642.tar.bz2 podman-89b4683cc4666f789ebc3d21453ef65e37775642.zip |
Merge pull request #6372 from boaz0/gh_6283
Add --format to pod inspect
Diffstat (limited to 'test/system/200-pod.bats')
-rw-r--r-- | test/system/200-pod.bats | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/system/200-pod.bats b/test/system/200-pod.bats index e3643a3bd..f34cd0707 100644 --- a/test/system/200-pod.bats +++ b/test/system/200-pod.bats @@ -170,4 +170,16 @@ function random_ip() { is "$output" ".*options $dns_opt" "--dns-opt was added" } +@test "podman pod inspect - format" { + skip_if_remote "podman-pod does not work with podman-remote" + + run_podman pod create --name podtest + podid=$output + + run_podman pod inspect --format '-> {{.Name}}: {{.NumContainers}}' podtest + is "$output" "-> podtest: 1" + + run_podman pod rm -f podtest +} + # vim: filetype=sh |