From 078ddcb7cee654fd130496590fe69aeebb2a971e Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 7 Jan 2025 23:37:31 +0100 Subject: [PATCH] test: add superficial test for generic per-service varlink API --- test/units/TEST-13-NSPAWN.importctl.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/units/TEST-13-NSPAWN.importctl.sh b/test/units/TEST-13-NSPAWN.importctl.sh index be31837447..ac4a70e9b0 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 '{}'