diff options
author | Ray Strode <rstrode@redhat.com> | 2023-03-27 15:08:15 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2023-03-27 15:13:47 -0400 |
commit | c7554931bbb673316a2c5541e0de4ddf25495a2f (patch) | |
tree | 4384f8d44e8c1876d493291d453b2340186dc330 | |
parent | b9baa7113b7fc651feca317d691297abd9312e76 (diff) |
tests: Fix dbusmock accountservice template user parameterization
The accountservice template is supposed to allow the caller to
be able to provide pre-existing users up front.
We haven't used that feature yet, and it turns out it doesn't work.
This commit fixes that, so that a future commit can make use of it.
-rw-r--r-- | tests/dbusmock/accounts_service.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/dbusmock/accounts_service.py b/tests/dbusmock/accounts_service.py index 3f14c56..6f36efe 100644 --- a/tests/dbusmock/accounts_service.py +++ b/tests/dbusmock/accounts_service.py @@ -40,8 +40,7 @@ def load(mock, parameters=None): mock.AddProperties(MAIN_IFACE, mock.GetAll(MAIN_IFACE)) for uid, name in parameters.get('users', {}).items(): - mock.AddUser(uid, name) - + mock.AddUser(uid, name, DEFAULT_USER_PASSWORD, {}, {}) def emit_properties_changed(mock, interface=MAIN_IFACE, properties=None): if properties is None: |