We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8378577 commit c3ed4faCopy full SHA for c3ed4fa
1 file changed
tests/pytests/functional/modules/test_win_useradd.py
@@ -214,6 +214,19 @@ def test_info_int(user, account_int):
214
assert ret["uid"].startswith("S-1-5")
215
216
217
+def test_info_domain_local(user, account_str):
218
+ domain = "." # localhost or hostname doesn't work, only .
219
+ ret = user.info(f"{domain}\\{account_str.username}")
220
+ assert ret["name"] == account_str.username
221
+ assert ret["uid"].startswith("S-1-5")
222
+
223
224
+def test_info_domain_not_found(user, account_str):
225
+ domain = "junk.com"
226
227
+ assert ret == {}
228
229
230
def test_list_groups_str(user, account_str):
231
ret = user.list_groups(account_str.username)
232
assert ret == ["Users"]
0 commit comments