diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-08-10 10:13:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 10:13:25 -0400 |
commit | da00482ef29e0a04a690f1538391e38b0b951dd0 (patch) | |
tree | bc9de20dda17fa08d9cde10f3aaff7763dd14915 /test/system/070-build.bats | |
parent | 95e2e15a3f13babfabb1b8d192893a56719d79a9 (diff) | |
parent | 3c880a9b830d994ed73f715726e5fc551f0e1776 (diff) | |
download | podman-da00482ef29e0a04a690f1538391e38b0b951dd0.tar.gz podman-da00482ef29e0a04a690f1538391e38b0b951dd0.tar.bz2 podman-da00482ef29e0a04a690f1538391e38b0b951dd0.zip |
Merge pull request #7238 from edsantiago/bats
system tests: podman-remote, image tree
Diffstat (limited to 'test/system/070-build.bats')
-rw-r--r-- | test/system/070-build.bats | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats index d2ef9f0f9..0e6e97d40 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -165,6 +165,7 @@ EOF # cd to the dir, so we test relative paths (important for podman-remote) cd $PODMAN_TMPDIR run_podman build -t build_test -f build-test/Containerfile build-test + local iid="${lines[-1]}" # Run without args - should run the above script. Verify its output. export MYENV2="$s_env2" @@ -232,6 +233,22 @@ Labels.$label_name | $label_value run_podman run --rm build_test stat -c'%u:%g:%N' /a/b/c/myfile is "$output" "4:5:/a/b/c/myfile" "file in volume is chowned" + # Hey, as long as we have an image with lots of layers, let's + # confirm that 'image tree' works as expected + run_podman image tree build_test + is "${lines[0]}" "Image ID: ${iid:0:12}" \ + "image tree: first line" + is "${lines[1]}" "Tags: \[localhost/build_test:latest]" \ + "image tree: second line" + is "${lines[2]}" "Size: [0-9.]\+[kM]B" \ + "image tree: third line" + is "${lines[3]}" "Image Layers" \ + "image tree: fourth line" + is "${lines[4]}" "... ID: [0-9a-f]\{12\} Size: .* Top Layer of: \[$IMAGE]" \ + "image tree: first layer line" + is "${lines[-1]}" "... ID: [0-9a-f]\{12\} Size: .* Top Layer of: \[localhost/build_test:latest]" \ + "image tree: last layer line" + # Clean up run_podman rmi -f build_test } |