diff options
author | Ed Santiago <santiago@redhat.com> | 2020-08-05 08:37:09 -0600 |
---|---|---|
committer | Paul Holzinger <paul.holzinger@web.de> | 2020-08-30 12:11:19 +0200 |
commit | 8b38d27ebdc825c1336d898d1a21fd8f301b18b0 (patch) | |
tree | 3af9071665a017455c156bd19a3ce33407ac9520 /test/system/070-build.bats | |
parent | 33cf7aec51eec726544499189b20ee1395b9f513 (diff) | |
download | podman-8b38d27ebdc825c1336d898d1a21fd8f301b18b0.tar.gz podman-8b38d27ebdc825c1336d898d1a21fd8f301b18b0.tar.bz2 podman-8b38d27ebdc825c1336d898d1a21fd8f301b18b0.zip |
system tests: podman-remote, image tree
- new sanity checks for podman-remote:
- first, confirm that when PODMAN is "-remote",
we actually talk to a server (validated by
presence of "Server:" string in "podman version").
- second, add test for #7212, in which we run
"podman --remote" (podman with --remote flag,
not podman-remote command) and make sure --remote
is allowed both as the first option and also
with other flag options preceding.
- new test for "podman image tree" (piggybacking on
top of a "podman build" test, because that gives
us lots of layers).
- skip "podman exec - basic test" when remote. It is consistently
causing CI failures, breaking all of CI, due to #7241.
Signed-off-by: Ed Santiago <santiago@redhat.com>
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 bdc05a172..7dd1077ae 100644 --- a/test/system/070-build.bats +++ b/test/system/070-build.bats @@ -164,6 +164,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" @@ -231,6 +232,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 } |