From: Frantisek Sumsal Date: Thu, 9 Mar 2023 15:33:08 +0000 (+0100) Subject: test: exercise JSON transformations in busctl X-Git-Tag: v254-rc1~1048^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4af346a8d862fd2a941f16244502045e60934212;p=thirdparty%2Fsystemd.git test: exercise JSON transformations in busctl --- diff --git a/test/units/testsuite-74.busctl.sh b/test/units/testsuite-74.busctl.sh index 44d8032d8bc..fb8236ecb5d 100755 --- a/test/units/testsuite-74.busctl.sh +++ b/test/units/testsuite-74.busctl.sh @@ -35,6 +35,11 @@ busctl call --json=pretty \ busctl call --json=short \ org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager \ ListUnitsByNames as 2 "systemd-journald.service" "systemd-logind.service" | jq +# Get all properties on the org.freedesktop.systemd1.Manager interface and dump +# them as JSON to exercise the internal JSON transformations +busctl call -j \ + org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.DBus.Properties \ + GetAll s "org.freedesktop.systemd1.Manager" | jq -c busctl call --verbose --timeout=60 --expect-reply=yes \ org.freedesktop.systemd1 /org/freedesktop/systemd1 org.freedesktop.systemd1.Manager \ ListUnitsByPatterns asas 1 "active" 2 "systemd-*.socket" "*.mount"