mirror of
https://github.com/containers/podman.git
synced 2025-10-18 11:42:55 +08:00
Merge pull request #6810 from vrothberg/auto-update-test
systemd system test: run auto-update
This commit is contained in:
@ -41,7 +41,7 @@ function teardown() {
|
||||
fi
|
||||
|
||||
cname=$(random_string)
|
||||
run_podman create --name $cname --detach $IMAGE top
|
||||
run_podman create --name $cname --label "io.containers.autoupdate=image" --detach $IMAGE top
|
||||
|
||||
run_podman generate systemd --new $cname
|
||||
echo "$output" > "$UNIT_FILE"
|
||||
@ -64,6 +64,12 @@ function teardown() {
|
||||
run_podman logs $cname
|
||||
is "$output" ".*Load average:.*" "running container 'top'-like output"
|
||||
|
||||
# Exercise `podman auto-update`.
|
||||
# TODO: this will at least run auto-update code but won't perform an update
|
||||
# since the image didn't change. We need to improve on that and run
|
||||
# an image from a local registry instead.
|
||||
run_podman auto-update
|
||||
|
||||
# All good. Stop service, clean up.
|
||||
run $SYSTEMCTL stop "$SERVICE_NAME"
|
||||
if [ $status -ne 0 ]; then
|
||||
|
Reference in New Issue
Block a user