]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: add superficial test for generic per-service varlink API
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Jan 2025 22:37:31 +0000 (23:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Sat, 18 Jan 2025 22:24:29 +0000 (23:24 +0100)
test/units/TEST-13-NSPAWN.importctl.sh

index be318374476113f56ee2f08e6fc58935e09694b5..ac4a70e9b0256e632df57a30deb394ce714e7995 100755 (executable)
@@ -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 '{}'