Enable limiting in ldap for groups

Change-Id: If7f66b72df4d0db1afded0a0e377909e82e1243b
Closes-Bug: 1501698
This commit is contained in:
Boris Bobrov 2015-10-14 18:37:20 +03:00
parent 9c6c24f357
commit 431f067f64
2 changed files with 1 additions and 5 deletions

View File

@ -394,4 +394,4 @@ class GroupApi(common_ldap.BaseLdap):
def get_all_filtered(self, hints, query=None):
query = self.filter_query(hints, query)
return [common_ldap.filter_entity(group)
for group in self.get_all(query)]
for group in self.get_all(query, hints)]

View File

@ -2038,10 +2038,6 @@ class LDAPLimitTests(unit.TestCase, test_backend.LimitTests):
config_files.append(unit.dirs.tests_conf('backend_ldap.conf'))
return config_files
@wip("limiting doesn't work due to bug 1501698")
def test_list_groups_filtered_and_limited(self):
self._test_list_entity_filtered_and_limited('group')
def test_list_projects_filtered_and_limited(self):
self.skipTest("ldap for storing projects is deprecated")