diff options
author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-04-18 10:08:20 +0200 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-04-22 16:00:09 +0200 |
commit | e97d9972e8ad05dff1a3b99468ee5728c2c183a8 (patch) | |
tree | 043d3e52c5d0ecdac4cf0bf5d46504d04019e059 | |
parent | 91d312000e6ded4a93327c137b10c5beda55f65c (diff) | |
download | sssd-e97d9972e8ad05dff1a3b99468ee5728c2c183a8.tar.gz sssd-e97d9972e8ad05dff1a3b99468ee5728c2c183a8.tar.xz sssd-e97d9972e8ad05dff1a3b99468ee5728c2c183a8.zip |
intg: Use different uid range for add_remove tests
Most linux distribution create local users from UID 1000.
We used similar UID space in sssd but it might caused
issues in add remove tests becuase sssd in cwrap enviroment
run in the same PID space. If sssd try to remove user
with uid 1001 it will fail because the local user with the same UID
is active and sssd does not remove active users.
Reviewed-by: Petr Cech <pcech@redhat.com>
-rw-r--r-- | src/tests/intg/ldap_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/intg/ldap_test.py b/src/tests/intg/ldap_test.py index 757ee20a2..86a3d6e0e 100644 --- a/src/tests/intg/ldap_test.py +++ b/src/tests/intg/ldap_test.py @@ -461,13 +461,13 @@ def user_and_groups_rfc2307_bis(request, ldap_conn): def test_add_remove_user(ldap_conn, blank_rfc2307): """Test user addition and removal are reflected by SSSD""" - e = ldap_ent.user(ldap_conn.ds_inst.base_dn, "user", 1001, 2000) + e = ldap_ent.user(ldap_conn.ds_inst.base_dn, "user", 2001, 2000) time.sleep(INTERACTIVE_TIMEOUT/2) # Add the user ent.assert_passwd(ent.contains_only()) ldap_conn.add_s(*e) time.sleep(INTERACTIVE_TIMEOUT) - ent.assert_passwd(ent.contains_only(dict(name="user", uid=1001))) + ent.assert_passwd(ent.contains_only(dict(name="user", uid=2001))) # Remove the user ldap_conn.delete_s(e[0]) time.sleep(INTERACTIVE_TIMEOUT) |