mirror of
https://github.com/containers/podman.git
synced 2025-06-25 03:52:15 +08:00
Merge pull request #17673 from vrothberg/fix-17607
auto-update test: wait for service to be ready
This commit is contained in:
@ -112,7 +112,7 @@ function _confirm_update() {
|
||||
local old_iid=$2
|
||||
|
||||
# Image has already been pulled, so this shouldn't take too long
|
||||
local timeout=5
|
||||
local timeout=10
|
||||
while [[ $timeout -gt 0 ]]; do
|
||||
sleep 1
|
||||
run_podman '?' inspect --format "{{.Image}}" $cname
|
||||
@ -239,11 +239,12 @@ function _confirm_update() {
|
||||
|
||||
@test "podman auto-update - label io.containers.autoupdate=local" {
|
||||
generate_service localtest local
|
||||
_wait_service_ready container-$cname.service
|
||||
|
||||
image=quay.io/libpod/localtest:latest
|
||||
run_podman commit --change CMD=/bin/bash $cname $image
|
||||
run_podman image inspect --format "{{.ID}}" $image
|
||||
|
||||
_wait_service_ready container-$cname.service
|
||||
run_podman auto-update --dry-run --format "{{.Unit}},{{.Image}},{{.Updated}},{{.Policy}}"
|
||||
is "$output" ".*container-$cname.service,quay.io/libpod/localtest:latest,pending,local.*" "Image update is pending."
|
||||
|
||||
|
Reference in New Issue
Block a user