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:
Ondřej Míchal 2021-07-28 15:57:45 +02:00
parent 9820550c82
commit 04c673dd06

View file

@ -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."
}