Skip to content

Commit

Permalink
Merge pull request #17673 from vrothberg/fix-17607
Browse files Browse the repository at this point in the history
auto-update test: wait for service to be ready
  • Loading branch information
openshift-merge-robot authored Mar 1, 2023
2 parents 86a0e44 + 51cf2dd commit 4f4665c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/system/255-auto-update.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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."

Expand Down

0 comments on commit 4f4665c

Please sign in to comment.