tests: use a deterministic order on users (#67600)
gitea/authentic/pipeline/head Build queued...
Details
gitea/authentic/pipeline/head Build queued...
Details
This commit is contained in:
parent
39ee9d898a
commit
5726eadf20
|
@ -2451,7 +2451,7 @@ def test_sync_ldap_users(slapd, settings, app, db, caplog, nologtoconsole):
|
|||
"Created user etienne.michu@ldap (uuid %s) from dn=cn=Étienne Michu,o=ôrga, uid=['%s'], "
|
||||
"sn=['Michu'], givenname=['Étienne'], l=['Paris'], mail=['etienne.michu@example.net'], entryuuid=['%s']"
|
||||
)
|
||||
% (User.objects.first().uuid, USERNAME, entryuuid)
|
||||
% (User.objects.order_by('id').first().uuid, USERNAME, entryuuid)
|
||||
)
|
||||
assert caplog.records[-1].message == 'Search for (|(mail=*)(uid=*)) returned 6 users.'
|
||||
|
||||
|
@ -2478,7 +2478,7 @@ def test_sync_ldap_users(slapd, settings, app, db, caplog, nologtoconsole):
|
|||
assert caplog.records[2].message == (
|
||||
"Updated user etienne.michu@ldap (uuid %s) from dn=cn=Étienne Michu,o=ôrga, uid=['%s'], "
|
||||
"sn=['Michu'], givenname=['Étienne'], l=['Paris'], mail=['etienne.michu@example.net'], entryuuid=['%s']"
|
||||
) % (User.objects.first().uuid, USERNAME, entryuuid)
|
||||
) % (User.objects.order_by('id').first().uuid, USERNAME, entryuuid)
|
||||
|
||||
|
||||
def test_update_mapped_roles_manageable_members(slapd, settings, app, db, caplog, nologtoconsole):
|
||||
|
|
Loading…
Reference in New Issue