diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-09 16:33:08 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-03-09 16:33:08 +0100 |
commit | 4af346a8d862fd2a941f16244502045e60934212 (patch) | |
tree | 31433b81ece97821665e5b2022132f355c646c2b | |
parent | ba0e70673c60d73e7ba15f326c633a111f1a15bf (diff) | |
download | systemd-4af346a8d862fd2a941f16244502045e60934212.tar.gz |
test: exercise JSON transformations in busctl
-rwxr-xr-x | test/units/testsuite-74.busctl.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/units/testsuite-74.busctl.sh b/test/units/testsuite-74.busctl.sh index 44d8032d8b..fb8236ecb5 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" |