mirror of
https://github.com/containers/podman.git
synced 2025-05-31 07:27:13 +08:00
fix bug check nonexist authfile
Use GetDefaultAuthFile() from buildah. For podman command(except login), if authfile does not exist returns error. close #4328 Signed-off-by: Qi Wang <qiwan@redhat.com>
This commit is contained in:
@ -353,4 +353,11 @@ var _ = Describe("Podman pull", func() {
|
||||
rmi.WaitWithDefaultTimeout()
|
||||
Expect(rmi.ExitCode()).To(Equal(0))
|
||||
})
|
||||
|
||||
It("podman pull from docker with nonexist --authfile", func() {
|
||||
SkipIfRemote()
|
||||
session := podmanTest.PodmanNoCache([]string{"pull", "--authfile", "/tmp/nonexist", ALPINE})
|
||||
session.WaitWithDefaultTimeout()
|
||||
Expect(session.ExitCode()).To(Not(Equal(0)))
|
||||
})
|
||||
})
|
||||
|
Reference in New Issue
Block a user