]> 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)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Sep 2025 10:50:28 +0000 (19:50 +0900)
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
```

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

index 481dc85d6fd2f9cfefa5f3a434f4ca5d0bf65d5d..d00d2e65d83dabe3d0b466c571feb230dc8518ae 100755 (executable)
@@ -167,7 +167,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)