diff options
author | Ed Santiago <santiago@redhat.com> | 2020-11-12 05:55:39 -0700 |
---|---|---|
committer | Ed Santiago <santiago@redhat.com> | 2020-11-14 14:55:48 -0700 |
commit | a4c24719445777292193fa2c7a325a1757096fdd (patch) | |
tree | b94acbbe3111af3b574c8d8a43f6880039502231 /test/system/010-images.bats | |
parent | 4eb9c28433f8aa1827f844881efb1ae1d15b0860 (diff) | |
download | podman-a4c24719445777292193fa2c7a325a1757096fdd.tar.gz podman-a4c24719445777292193fa2c7a325a1757096fdd.tar.bz2 podman-a4c24719445777292193fa2c7a325a1757096fdd.zip |
system tests: various
- images: confirm that 'podman images' emits headings
even if there are no images present. Intended to
replace e2e test which is difficult to get working
under podman-remote.
- build: add test for #8092, podman-build gobbling stdin.
Workaround needed for issues #8342 and #8343, in which
podman-remote output differs from podman local.
- volumes: add test for #8307, double-lock on same volume.
Signed-off-by: Ed Santiago <santiago@redhat.com>
Diffstat (limited to 'test/system/010-images.bats')
-rw-r--r-- | test/system/010-images.bats | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/system/010-images.bats b/test/system/010-images.bats index 900a24368..98bb0cc57 100644 --- a/test/system/010-images.bats +++ b/test/system/010-images.bats @@ -3,10 +3,18 @@ load helpers @test "podman images - basic output" { - run_podman images -a + headings="REPOSITORY *TAG *IMAGE ID *CREATED *SIZE" - is "${lines[0]}" "REPOSITORY *TAG *IMAGE ID *CREATED *SIZE" "header line" + run_podman images -a + is "${lines[0]}" "$headings" "header line" is "${lines[1]}" "$PODMAN_TEST_IMAGE_REGISTRY/$PODMAN_TEST_IMAGE_USER/$PODMAN_TEST_IMAGE_NAME *$PODMAN_TEST_IMAGE_TAG *[0-9a-f]\+" "podman images output" + + # 'podman images' should emit headings even if there are no images + # (but --root only works locally) + if ! is_remote; then + run_podman --root ${PODMAN_TMPDIR}/nothing-here-move-along images + is "$output" "$headings" "'podman images' emits headings even w/o images" + fi } @test "podman images - custom formats" { |