summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* Replace assertItemsEqual with assertCountEqualgugug2020-07-122-8/+8
| | | | | | | | | | | | | | | assertItemsEqual was removed from Python's unittest.TestCase in Python 3.3 [1][2]. We have been able to use them since then, because testtools required unittest2, which still included it. With testtools removing Python 2.7 support [3][4], we will lose support for assertItemsEqual, so we should switch to use assertCountEqual. [1] - https://bugs.python.org/issue17866 [2] - https://hg.python.org/cpython/rev/d9921cb6e3cd [3] - testing-cabal/testtools#286 [4] - testing-cabal/testtools#277 Change-Id: Ib5985049235ee1b6018fc172a67e3b05970a6c42
* Hacking: Fix F601Andreas Jaeger2020-03-311-5/+1
| | | | | | | Fix F601 failures: F601 dictionary key '...' repeated with different values Change-Id: I4c12f5a2348371966215e1ae05b726e6d04b0c8f
* Add parent project filter for listing projectsTakashi Kajinami2019-08-291-0/+24
| | | | | | | | | | This patch introduces the interface into listing project, to specify parent_id to filter projects which has the given project as their parent[1]. [1] https://docs.openstack.org/api-ref/identity/v3/?expanded=list-projects-detail#list-projects Change-Id: If78030425468d4f99cba708540142871a2bf9190
* Convert functional tests to Zuulv3Colleen Murphy2018-10-281-50/+0
| | | | | | | Use the devstack-tox-functional-consumer job as a parent job to allow us to remove the custom playbooks and devstack hooks. Change-Id: Ide6e6da3cbb479b5149fb44f0ef392dc80202910
* Add project tags to keystoneclientSamuel Pilla2017-12-202-2/+259
| | | | | | | | | | | | | | | | | | Adds the client functionality for the following project tag calls: - Create a project tag on a project - Check if a project tag exists on a project - List project tags on a project - Modify project tags on a project - Delete a specific project tag on a project - Delete all project tags on a project Co-Authored-By: Jess Egler <jess.egler@gmail.com> Co-Authored-By: Rohan Arora <ra271w@att.com> Co-Authored-By: Tin Lam <tin@irrational.io> Partially Implements: bp project-tags Change-Id: I486b2969ae0aa2638842d842fb8b0955cc086d25
* Remove functional tests for v2.0 APIRodrigo Duarte Sousa2017-11-144-61/+0
| | | | Change-Id: I207b716e47893931e79e3758abc2bd879917f340
* Use generic user for both zuul v2 and v3Nam Nguyen Hoai2017-10-171-3/+3
| | | | | | | Zuul v2 uses 'jenkins' as user, but Zuul v3 uses 'zuul'. Using $USER solves it for both cases. Change-Id: I42cfcd4d8dee2ff3a99e42a5a64f3c38163972b8
* Add support for endpoint group filteringEnrique Garcia Navalon2017-04-133-10/+102
| | | | | | | | | | | | | | | | The following API calls are made available: - GET /OS-EP-FILTER/projects/{project_id}/endpoint_groups - GET /OS-EP-FILTER/endpoint_groups/{endpoint_group_id}/projects - PUT /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/{project_id} - HEAD /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/{project_id} - DELETE /OS-EP-FILTER/endpoint_groups/{endpoint_group}/projects/{project_id} Co-Authored-By: Samuel de Medeiros Queiroz <samueldmq@gmail.com> Closes-Bug: #1641674 Change-Id: Idf938267479b5b8c50c9aa141c3c2770c2d69839
* Merge "Add support for endpoint group CRUD"Jenkins2017-02-142-0/+132
|\
| * Add support for endpoint group CRUDSamuel de Medeiros Queiroz2017-02-112-0/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following API calls are made available: - POST /OS-EP-FILTER/endpoint_groups - GET /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} - HEAD /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} - PATCH /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} - DELETE /OS-EP-FILTER/endpoint_groups/{endpoint_group_id} - GET /OS-EP-FILTER/endpoint_groups Partial-Bug: #1641674 Change-Id: I285eefe82152b178268f671e8800a0ff8c1511e4
* | Allow Multiple Filters of the Same KeySamuel Pilla2017-01-241-0/+23
|/ | | | | | | | | | | | | | | | | Before, the way filters were passed in would not allow filtering on the same key. For example: keystone.users.list(name__contains='test', name__contains='user') This fails because of how kwargs handles key/value pairs. This patch allows using multiple values for the same filter. Example: keystone.users.list(name__contains=['test', 'user']) Specifying the only one filter value is still functional as expected. Co-Authored-By: Jeffrey Augustine <ja224e@att.com> Partially-Implements: bp pci-dss-query-password-expired-users Change-Id: I89cecf7e18974e7860ba0925840d6264168eabcb
* re-work inference rule bindingsSteve Martinelli2016-12-182-4/+5
| | | | | | | | | | | | | | - At least one API was not implemented (list_implied_roles) - the tests were lacking assertions and proper mocked responses - some of the functionality just didn't work (see bug) - returning Role objects instead of InferenceRule objects Related commits: - I80a40e88b571fe9b0eca3af8b705ea79f28eb904 - I66e863fb83f8dfcca2c48116d4377df060f402c3 Closes-Bug: 1647934 Change-Id: I7b449a93d7d4d3eb9ca857f6c1f78f884bad2534
* Refactor test_projectsRodrigo Duarte Sousa2016-12-051-37/+36
| | | | | | | Do not reuse the environment's domain and project, create new ones for the tests. Change-Id: I91a5c1b42c0b31f548c1154a4ef028f45cf1cd24
* Refactor test_credentialsRodrigo Duarte Sousa2016-12-051-13/+18
| | | | | | | Do not reuse client's domain, create a new one to be used only by the test, which is destroyed later. Change-Id: I4e3bb11a92535650317a30e6a1854bfd161ee93f
* skip failing functional testSteve Martinelli2016-12-041-0/+3
| | | | Change-Id: If3894679d21709ab813b4675c4bc721a3987596a
* Refactor test_domain_configsRodrigo Duarte Sousa2016-11-161-13/+18
| | | | | | | Do not reuse the environment domain, create a new one to be fully controlled by the test cases. Change-Id: Idb894da724e252b01405fc937c021fd8981ee090
* Support domain-specific configuration managementHenry Nash2016-11-022-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | Provide support for the domain-specific configuration storage available via the REST API. Domain configs are JSON blobs and we have fine grained control on them via the Identity API. This fine grained control is not defined yet in the client, though - for now, we can manage everything like Python dictionaries and use operations like "update" whenever we want to delete a specific group or option. This approach is similar to what is done in the federation mapping API to handle mapping rules. Functional tests are also included, this is useful to check if the new feature works in an integration environment. Co-Auhtored-By: Henry Nash <henryn@linux.vnet.ibm.com> Co-Authored-By: Rodrigo Duarte <rduartes@redhat.com> Closes-Bug: 1433306 Partially Implements: blueprint domain-config-ext Change-Id: Ie6795b8633fed38c58b79250c11c9a045b7f95a4
* Import module instead of objectAnh Tran2016-09-271-5/+5
| | | | Change-Id: I17dbbd1ca4b940596c913d58a11bd83f19993bb6
* Merge "Import module instead of object"Jenkins2016-09-211-3/+3
|\
| * Import module instead of objectRodrigo Duarte Sousa2016-09-131-3/+3
| | | | | | | | | | | | | | | | | | According to the guidelines, we should import modules instead of classes [1]. [1] http://docs.openstack.org/developer/hacking/#imports Change-Id: I43d881597eb92e98196dad84776c0e229c288b6f
* | Revert "Add auth functional tests"Rodrigo Duarte Sousa2016-09-211-39/+0
|/ | | | | | | | | | | This reverts commit 2a91a41142080a4f1abb8f9846f88846c6b5c6b7. This is a quick fix to unblock the python-keystoneclient gate. Not closing the bug since we can fix the test behavior by using an extra client just to run the tests operations. Change-Id: I976488243ad3c357cd2aeb604973603380858dc4 Related-Bug: 1626131
* Merge "Follow up patch for Add ec2 functional tests"Jenkins2016-08-191-0/+22
|\
| * Follow up patch for Add ec2 functional testsNisha Yadav2016-08-191-0/+22
| | | | | | | | | | | | | | This patch adds the test_list_ec2 left by the review I19988661e2d92a3e501a04e2a0e2d773ddcc36e9 Change-Id: Id53fbcb3e82d3bc47babd1129d533dfbc6c13791
* | Add auth functional testsNisha Yadav2016-08-181-0/+39
|/ | | | | | Adds functional tests for auth. Change-Id: I62b42b7318cb0a85dee280931e44f6e5852216f0
* Add ec2 functional testsNisha Yadav2016-08-172-0/+88
| | | | | | Adds functional tests for ec2. Change-Id: I19988661e2d92a3e501a04e2a0e2d773ddcc36e9
* Merge "Add credential functional tests"Jenkins2016-08-162-0/+214
|\
| * Add credential functional testsNisha Yadav2016-08-162-0/+214
| | | | | | | | | | | | Adds functional tests for credentials. Change-Id: Ia483c47956747a241bc521c0e67a874e794d709c
* | Merge "Add role functional tests"Jenkins2016-08-051-0/+236
|\ \ | |/
| * Add role functional testsNisha Yadav2016-08-051-0/+236
| | | | | | | | | | | | | | | | | | Adds functional tests for roles. For now, the tests are created under a single class. Once we have a gate that runs against LDAP, we will create a class that only contains readonly tests and a tox call for it (e.g tox -e functional-readonly). Change-Id: I62b022044b56b6219a83e9e5cc0136c95389db16
* | Correct test_implied_rolesSamuel de Medeiros Queiroz2016-08-031-5/+0
|/ | | | | | | | | | | | That test is not supposed to test the count of roles. It is about role inference rules. This change removes the pure role checks, as it is not the main intent of the test. This also fixes a related bug where this test is failing intermittently. See the bug description for more details. Change-Id: I8ea1b6d8f344296486427a1f9ebc31c58314501e Closes-Bug: 1609398
* Add endpoint functional testsNisha Yadav2016-07-282-0/+161
| | | | | | Adds functional tests for endpoints. Change-Id: I0ae9f3ed3fd934d68328267c681d6af2856fe8c1
* Add region functional testsNisha Yadav2016-07-282-0/+100
| | | | | | Adds functional tests for regions. Change-Id: I809cd9ea320f3fda7348a110bd30fff1c411fcae
* Add project functional testsNisha Yadav2016-07-281-0/+188
| | | | | | Adds functional tests for projects. Change-Id: I72e7a4718f30851cf2046ebfe6e5cc95a517ebf6
* Improve implied-role functional testsNisha Yadav2016-07-132-28/+31
| | | | | | | Improves functional tests for implied-roles by using fixtures retaining the similarity with other client-functional-tests. Change-Id: Ia5531964b0064590845d58488f2d43ddf34d8129
* Merge "Add policy functional tests"Jenkins2016-07-062-0/+100
|\
| * Add policy functional testsNisha Yadav2016-07-062-0/+100
| | | | | | | | | | | | Adds functional tests for policies. Change-Id: I0b217b8c75ce245ab56fdfff17bf337ab9e4164c
* | Merge "Add service functional tests"Jenkins2016-07-062-0/+146
|\ \ | |/
| * Add service functional testsNisha Yadav2016-07-062-0/+146
| | | | | | | | | | | | Adds functional tests for services. Change-Id: Ied0ad0455799072d1e283024f12ea83e5603bce6
* | Remove print in tests.functional.v3.test_implied_rolesyuyafei2016-07-051-1/+0
|/ | | | | | TrivialFix Change-Id: Icc9d6c76faaf29cba98111ee82dffc94fc0b2030
* Add group functional testsNisha Yadav2016-06-211-0/+94
| | | | | | | | | Adds functional tests for groups. For now, the tests are created under a single class. Once we have a gate that runs against LDAP, we will create a class that only contains readonly tests and a tox call for it (e.g tox -e functional-readonly). Change-Id: Ib1db14367b8dc3bd6356aff0dfef1fc573211c6e
* Follow up patch for add domain functional testsNisha Yadav2016-06-212-5/+4
| | | | | | | This patch fixes comments left by the review I74bff2728c09e6aafaced97a7836f51e58a81786. Change-Id: Ic74e8fbde2455280f5affaafb8d989a6b98feb75
* Add domain functional testsNisha Yadav2016-06-202-0/+112
| | | | | | | | | Adds functional tests for domains. For now, the tests are created under a single class. Once we have a gate that runs against LDAP, we will create a class that only contains readonly tests and a tox call for it (e.g tox -e functional-readonly). Change-Id: I74bff2728c09e6aafaced97a7836f51e58a81786
* Add users functional testsSamuel de Medeiros Queiroz2016-05-122-0/+172
| | | | | | | | | Adds initial set of functional tests for users. For now, all the tests are created under a single class. Once we have a gate that runs against LDAP, we will create a class that only contains readonly tests and a tox call for it (e.g tox -e functional-readonly). Change-Id: Ie41872a1ad86db6219dd0af47dbc3e2db46bd878
* Merge "Replace tempest-lib with tempest.lib"Jenkins2016-05-051-1/+1
|\
| * Replace tempest-lib with tempest.libDaniel Gonzalez2016-04-281-1/+1
| | | | | | | | | | | | | | tempest-lib is deprecated, replace it with tempest.lib. Closes-Bug: #1553047 Change-Id: Ib03938b133f2aca1e73ec5df5815cff9dfe7b2e2
* | Merge "Add federation related tests"Jenkins2016-05-051-0/+106
|\ \
| * | Add federation related testsRodrigo Duarte2016-04-291-0/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the test_federation file with some tests for Identity Providers, the tests are not supposed to be exhaustive, they are rather simple and intend to cover the basic actions in the Identity Provider handling. More complete tests should be added later. Change-Id: Ibe618dcd646912060b1785d8d72fd526dd4a083b
* | | Fixing D208 PEP257 violation.Navid Pustchi2016-05-031-6/+6
|/ / | | | | | | | | | | | | | | Currently tox ignores D208. D208: Docstring is over-indented. This change removes D208 ignore and fix violations. Change-Id: Ifec21c7602468b2a60727b64d27e7f14d765638c
* | [Trivial] Remove unnecessary executable privilge of unit test fileZhiQiang Fan2016-04-291-0/+0
|/ | | | | | | | keystoneclient/tests/functional/v3/test_implied_roles.py is a test module, and it doesn't have main entry, hence the executable flag is not needed. Change-Id: Ic226607afcd82d2411cbe1cd5439b0db5f77728c
* Fix D400 PEP257 violation.Navid Pustchi2016-04-231-1/+1
| | | | | | | | Currently tox ignores D400. D400: First line should end with a period. This change removes it and make keystoneclient docstrings compliant with it. Change-Id: I29ecb4c58bb03c0b9a3be0b7a74d18fb06a350f2