From: Lennart Poettering Date: Tue, 7 Jan 2025 22:37:31 +0000 (+0100) Subject: test: add superficial test for generic per-service varlink API X-Git-Tag: v258-rc1~1559^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=078ddcb7cee654fd130496590fe69aeebb2a971e;p=thirdparty%2Fsystemd.git test: add superficial test for generic per-service varlink API --- diff --git a/test/units/TEST-13-NSPAWN.importctl.sh b/test/units/TEST-13-NSPAWN.importctl.sh index be318374476..ac4a70e9b02 100755 --- a/test/units/TEST-13-NSPAWN.importctl.sh +++ b/test/units/TEST-13-NSPAWN.importctl.sh @@ -83,3 +83,10 @@ systemctl daemon-reload systemctl start import0.service cmp /var/tmp/importtest /var/lib/confexts/importtest9/importtest + +# Verify generic service calls, too +varlinkctl call --more /run/systemd/io.systemd.Import io.systemd.service.Ping '{}' +varlinkctl call --more /run/systemd/io.systemd.Import io.systemd.service.SetLogLevel '{"level":"7"}' +varlinkctl call --more /run/systemd/io.systemd.Import io.systemd.service.SetLogLevel '{"level":"1"}' +varlinkctl call --more /run/systemd/io.systemd.Import io.systemd.service.SetLogLevel '{"level":"7"}' +varlinkctl call --more /run/systemd/io.systemd.Import io.systemd.service.GetEnvironment '{}'