test/system: Test pull failure
Follow-up to https://github.com/containers/toolbox/pull/852 https://github.com/containers/toolbox/pull/854
This commit is contained in:
parent
9820550c82
commit
04c673dd06
1 changed files with 9 additions and 0 deletions
|
@ -69,3 +69,12 @@ teardown() {
|
|||
|
||||
assert_output --regexp "Created[[:blank:]]+fedora-toolbox-32"
|
||||
}
|
||||
|
||||
@test "create: Try to create a container based on non-existent image" {
|
||||
run $TOOLBOX -y create -i foo.org/bar
|
||||
|
||||
assert_failure
|
||||
assert_line --index 0 "Error: failed to pull image foo.org/bar"
|
||||
assert_line --index 1 "If it was a private image, log in with: podman login foo.org"
|
||||
assert_line --index 2 "Use 'toolbox --verbose ...' for further details."
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue