Expose defect in users_in_group, groups_for_user exact filters
List users in a group by name and list groups for user by name throws
HTTP 500 error in case of exact filters because filter_by query used
in case of exact filter is not able to filter using 'name' attribute.
This patch exposes this issue by adding new unit test cases to ensure
list_users_in_group and list_groups_for_user APIs are called with
exact filters.
Note: Added 'from keystone.tests.unit.utils import wip' in
test_backend_ldap.py, because 'wip' is not there in
test_backend_ldap imports in stable-liberty.
Conflicts: keystone/tests/unit/test_backend.py
Partial-Bug: 1521772
Change-Id: I5d3c2041551a020341a98554ebb885888ec3cc9d
(cherry picked from commit 545987e1c4d451832b2d6c069874a11ae0bc6347)
Reviewed: https:/ /review. openstack. org/265177 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=be3160d165c 28657534974d5ad 9dbebc4254604d
Committed: https:/
Submitter: Jenkins
Branch: stable/liberty
commit be3160d165c2865 7534974d5ad9dbe bc4254604d
Author: Ankit Agrawal <email address hidden>
Date: Thu Jan 7 05:29:06 2016 -0800
Expose defect in users_in_group, groups_for_user exact filters
List users in a group by name and list groups for user by name throws users_in_ group and list_groups_ for_user APIs are called with
HTTP 500 error in case of exact filters because filter_by query used
in case of exact filter is not able to filter using 'name' attribute.
This patch exposes this issue by adding new unit test cases to ensure
list_
exact filters.
Note: Added 'from keystone. tests.unit. utils import wip' in backend_ ldap.py, because 'wip' is not there in backend_ ldap imports in stable-liberty.
test_
test_
Conflicts:
keystone/ tests/unit/ test_backend. py
Partial-Bug: 1521772 0341a98554ebb88 5888ec3cc9d 32b2d6c069874a1 1ae0bc6347)
Change-Id: I5d3c2041551a02
(cherry picked from commit 545987e1c4d4518