Commit c87f6e7c authored by Hilal Ozdemir's avatar Hilal Ozdemir

tests related to fixes in error handling

parent 4667f5c2
#!/usr/bin/env bats
@test "pull alpine from other node (with '--noprogress' option)" {
run python -m beiran docker image pull alpine --noprogress
@test "pulling an image from another node (with '--no-progress' option) exits peacefully" {
run python -m beiran docker image pull alpine --no-progress
[ "$status" -eq 0 ]
}
@test "pulling a non-existing image (with '--no-progress' option) prints error message" {
run python -m beiran docker image pull a_non_existent_image --no-progress
[ "$status" -eq 0 ]
}
#!/usr/bin/env bats
@test "pull alpine from other node (with '--wait' option)" {
run python -m beiran docker image pull alpine --wait
@test "pulling an image from another node (with '--wait' and '--no-progress' options) exits peacefully" {
run python -m beiran docker image pull alpine --wait --no-progress
[ "$status" -eq 0 ]
}
@test "pulling a non-existing image (with '--wait' and '--no-progress' options) prints error message" {
run python -m beiran docker image pull a_non_existent_image --wait --no-progress
[ "$status" -eq 0 ]
}
#!/usr/bin/env bats
@test "pull alpine from other node" {
@test "pulling an image from another node exits peacefully" {
run python -m beiran docker image pull alpine
[ "$status" -eq 0 ]
}
@test "pulling a non-existing image prints error message" {
run python -m beiran docker image pull a_non_existent_image
[ "$status" -eq 0 ]
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment