From 80bd9cde79d871b39e4c944c24b71f1a246311ae Mon Sep 17 00:00:00 2001 From: Lukas Slebodnik Date: Mon, 18 Apr 2016 10:08:20 +0200 Subject: [PATCH 2/3] 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. --- src/tests/intg/ldap_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/intg/ldap_test.py b/src/tests/intg/ldap_test.py index 9774c290529b5eadf3a72c43c0ccc1b4643869f6..0dbcc3ea2746567d8b52c859e2b37f7422de28ed 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) -- 2.7.3