summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorDaniel J Walsh <dwalsh@redhat.com>2021-04-05 12:27:36 -0400
committerDaniel J Walsh <dwalsh@redhat.com>2021-04-05 12:36:04 -0400
commit28251f41fff80041b08f6365b4d16e3cf4ff20b5 (patch)
treec54da8d75ac77ade2286d54c1e89042523e8ca2e /test/system
parent1c8d3d0f6fb83b1e6c99dec759f4ae1c6b2e8f18 (diff)
downloadpodman-28251f41fff80041b08f6365b4d16e3cf4ff20b5.tar.gz
podman-28251f41fff80041b08f6365b4d16e3cf4ff20b5.tar.bz2
podman-28251f41fff80041b08f6365b4d16e3cf4ff20b5.zip
Verify existence of auth file if specified
Fixes: https://github.com/containers/podman/issues/9572 Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'test/system')
-rw-r--r--test/system/070-build.bats5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats
index 2e97c93e0..5a887c71e 100644
--- a/test/system/070-build.bats
+++ b/test/system/070-build.bats
@@ -752,6 +752,11 @@ EOF
run_podman rmi -f build_test
}
+@test "podman build --authfile bogus test" {
+ run_podman 125 build --authfile=/tmp/bogus - <<< "from scratch"
+ is "$output" ".*/tmp/bogus: no such file or directory"
+}
+
function teardown() {
# A timeout or other error in 'build' can leave behind stale images
# that podman can't even see and which will cascade into subsequent