summaryrefslogtreecommitdiff
path: root/test/system
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2020-06-29 11:52:57 -0400
committerGitHub <noreply@github.com>2020-06-29 11:52:57 -0400
commitd90e8b6873f3f06a1b2cfe9f55ac61b3e5904bc3 (patch)
treef7bcdff1fe2c215a4b4cfba104b241a56335dc5d /test/system
parent59e6192eb6027ebf520a4b5ea4137d0a85f23c02 (diff)
parent43714cac215ebf63b6f3e91b003b6e5ac5de5fed (diff)
downloadpodman-d90e8b6873f3f06a1b2cfe9f55ac61b3e5904bc3.tar.gz
podman-d90e8b6873f3f06a1b2cfe9f55ac61b3e5904bc3.tar.bz2
podman-d90e8b6873f3f06a1b2cfe9f55ac61b3e5904bc3.zip
Merge pull request #6810 from vrothberg/auto-update-test
systemd system test: run auto-update
Diffstat (limited to 'test/system')
-rw-r--r--test/system/250-systemd.bats8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats
index 4bee13414..b7035cdda 100644
--- a/test/system/250-systemd.bats
+++ b/test/system/250-systemd.bats
@@ -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