tests: Adapt to changes in varlinkctl's behavior
varlinkctl no longer stays silent if an object is empty, and that broke some tests (cherry picked from commit 8904b844a43e21530d82a39bbd51c3d9847e5426)
This commit is contained in:
committed by
Luca Boccassi
parent
ffcf226c7f
commit
5e4d9b64f5
@@ -65,8 +65,8 @@ if command -v userdbctl >/dev/null; then
|
||||
nonmember_reply="$(varlinkctl call --graceful=io.systemd.UserDatabase.NoRecordFound -j \
|
||||
/run/systemd/userdb/io.systemd.Multiplexer \
|
||||
io.systemd.UserDatabase.GetMemberships \
|
||||
'{"userName":"test-74-nonmember","groupName":"test-74-group","service":"io.systemd.Multiplexer"}')"
|
||||
test -z "$nonmember_reply"
|
||||
'{"userName":"test-74-nonmember","groupName":"test-74-group","service":"io.systemd.Multiplexer"}' 2>&1)"
|
||||
grep "returned expected error: io.systemd.UserDatabase.NoRecordFound" <<<"$nonmember_reply" >/dev/null
|
||||
rm "$membership"
|
||||
|
||||
if command -v openssl >/dev/null && command -v groupadd >/dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user