Merge "Enable limiting in ldap for groups"

This commit is contained in:
Jenkins
2016-01-17 00:42:29 +00:00
committed by Gerrit Code Review
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")