diff options
author | Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> | 2015-09-29 20:00:14 +0300 |
---|---|---|
committer | Lukas Slebodnik <lslebodn@redhat.com> | 2015-10-09 09:03:03 +0200 |
commit | a190e39ea4f2c084091be1cd37a3c6e3b603540e (patch) | |
tree | edf0ddcf556ce2a9a6d73ceb6473cf90e8a834c3 /src/tests/intg/test_memory_cache.py | |
parent | 6c2e507bd1571f9c7e26c5c9d60753b29fb75578 (diff) | |
download | sssd-a190e39ea4f2c084091be1cd37a3c6e3b603540e.tar.gz sssd-a190e39ea4f2c084091be1cd37a3c6e3b603540e.tar.xz sssd-a190e39ea4f2c084091be1cd37a3c6e3b603540e.zip |
intg: Get base DN from LDAP connection object
Don't use the global LDAP_BASE_DN in integration tests and fixtures, but
instead take it from the LDAP connection object (ldap_conn) passed to
them explicitly. This makes the tests and fixtures a bit more modular.
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/tests/intg/test_memory_cache.py')
-rw-r--r-- | src/tests/intg/test_memory_cache.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/intg/test_memory_cache.py b/src/tests/intg/test_memory_cache.py index 8b06a4aa2..a8d6d8f5c 100644 --- a/src/tests/intg/test_memory_cache.py +++ b/src/tests/intg/test_memory_cache.py @@ -109,7 +109,7 @@ def create_sssd_fixture(request): def load_data_to_ldap(request, ldap_conn): - ent_list = ldap_ent.List(LDAP_BASE_DN) + ent_list = ldap_ent.List(ldap_conn.ds_inst.base_dn) ent_list.add_user("user1", 1001, 2001) ent_list.add_user("user2", 1002, 2002) ent_list.add_user("user3", 1003, 2003) |