]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: do not call GetUserRecord without "service" argument
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 3 Sep 2025 23:20:17 +0000 (08:20 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 7 Oct 2025 09:48:58 +0000 (11:48 +0200)
Otherwise, following debugging log will be saved and the checker for
the varlink-idl log triggers failure:
```
systemd-userwork: processing[3110]: varlink-6-6: Parameters for method
  io.systemd.UserDatabase.GetUserRecord() didn't pass validation on field 'service': No anode
```

(cherry picked from commit df25e4af162806e67fac88709413516a8182f634)

test/units/TEST-74-AUX-UTILS.varlinkctl.sh

index a0797469a46cbdb53cab64ccdb55fb61be12dd7f..84e6a4b7f28ba084a96e5238df5ad7ca4b3f6b08 100755 (executable)
@@ -153,7 +153,7 @@ done
 (! varlinkctl call "")
 (! varlinkctl call "" "")
 (! varlinkctl call "" "" "")
-(! varlinkctl call /run/systemd/userdb/io.systemd.Multiplexer io.systemd.UserDatabase.GetUserRecord </dev/null)
+(! varlinkctl call /run/systemd/userdb/io.systemd.Multiplexer io.systemd.UserDatabase.GetUserRecord '{ "service" : "io.systemd.ShouldNotExist" }')
 (! varlinkctl validate-idl "")
 (! varlinkctl validate-idl </dev/null)