]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: verify sysupdate invokes the notification callout directory
authorLennart Poettering <lennart@amutable.com>
Thu, 28 May 2026 09:42:57 +0000 (11:42 +0200)
committerLennart Poettering <lennart@amutable.com>
Wed, 24 Jun 2026 11:06:19 +0000 (13:06 +0200)
commit89dd06505bc3dffd152fd4ff9dcff59b71bba56a
treea9f0a119a26592438cbf0d2a2794d15bd4f56959
parentbe1643b549e32eb91d704454e629120a38b5861c
test: verify sysupdate invokes the notification callout directory

Extend TEST-72-SYSUPDATE with a check that, after a successful update,
systemd-sysupdate connects to every socket linked into
/run/systemd/sysupdate/notify/ and invokes
io.systemd.SysUpdate.Notify.OnCompletedUpdate(). A tiny recorder socket is
hooked into that directory; it captures the request and replies with success.
We assert the recorded call carries the expected method, version and resource
list, and that a subsequent no-op update emits no notification.
test/units/TEST-72-SYSUPDATE.sh