Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

systemd system test: run auto-update #6810

Merged
merged 1 commit into from
Jun 29, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/system/250-systemd.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down