aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMatthew Heon <matthew.heon@gmail.com>2017-12-13 09:36:14 -0500
committerGitHub <noreply@github.com>2017-12-13 09:36:14 -0500
commite456c07813c5ccc6ccc81ad9a103e46e1b59b50c (patch)
tree06d6976ab80d77d19393f81344ef092fa9e51a3f /test
parentcfb4e15e430e63b17420e80c0f6030a12fa1fb4a (diff)
parent74ee579375654c79fa710f13b7c2ee3810366f82 (diff)
downloadpodman-e456c07813c5ccc6ccc81ad9a103e46e1b59b50c.tar.gz
podman-e456c07813c5ccc6ccc81ad9a103e46e1b59b50c.tar.bz2
podman-e456c07813c5ccc6ccc81ad9a103e46e1b59b50c.zip
Merge pull request #106 from umohnani8/kpod_inspect
Update kpod inspect to use the new container state
Diffstat (limited to 'test')
-rw-r--r--test/kpod_inspect.bats10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/kpod_inspect.bats b/test/kpod_inspect.bats
index ca7e16aad..86a4e7698 100644
--- a/test/kpod_inspect.bats
+++ b/test/kpod_inspect.bats
@@ -40,3 +40,13 @@ function setup() {
echo "$output"
[ "$status" -eq 0 ]
}
+
+@test "kpod inspect container with size" {
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} create ${BB} ls"
+ echo "$output"
+ [ "$status" -eq 0 ]
+ ctr_id="$output"
+ run bash -c "${KPOD_BINARY} $KPOD_OPTIONS inspect --size $ctr_id | python -m json.tool | grep SizeRootFs"
+ echo "$output"
+ [ "$status" -eq 0 ]
+}