diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2022-09-13 13:00:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-13 13:00:23 +0200 |
commit | c0dd0d696e333ad42a5fa3d9428fee27b1c30061 (patch) | |
tree | 6d20a847b4df3361c2f80bff59bed3a2e7e14a8a /test/system | |
parent | eb6925930533b2ea812551d107f69bdf16f1dd0a (diff) | |
parent | 0ea5080c9156853b7806879226e23ab0405815d6 (diff) | |
download | podman-c0dd0d696e333ad42a5fa3d9428fee27b1c30061.tar.gz podman-c0dd0d696e333ad42a5fa3d9428fee27b1c30061.tar.bz2 podman-c0dd0d696e333ad42a5fa3d9428fee27b1c30061.zip |
Merge pull request #15766 from vrothberg/fix-15284
generate systemd: warn on --restart without --new
Diffstat (limited to 'test/system')
-rw-r--r-- | test/system/250-systemd.bats | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/system/250-systemd.bats b/test/system/250-systemd.bats index 0e1dc356d..ddec3a492 100644 --- a/test/system/250-systemd.bats +++ b/test/system/250-systemd.bats @@ -81,6 +81,13 @@ function service_cleanup() { skip "FIXME: 2022-09-01: requires conmon-2.1.4, ubuntu has 2.1.3" fi + # Warn when a custom restart policy is used without --new (see #15284) + run_podman create --restart=always $IMAGE + cid="$output" + run_podman generate systemd $cid + is "$output" ".*Container $cid has restart policy .*always.* which can lead to issues on shutdown.*" "generate systemd emits warning" + run_podman rm -f $cid + cname=$(random_string) # See #7407 for --pull=always. run_podman create --pull=always --name $cname --label "io.containers.autoupdate=registry" $IMAGE \ |