summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Fix D401 PEP257 violation.Navid Pustchi2016-04-231-1/+1
| | | | | | | | Currently tox ignores D401. 401: First line should be in imperative mood. This change removes it and make keystoneclient docstrings compliant with it. Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
* Enhance functional class to provide default infoSamuel de Medeiros Queiroz2016-03-141-23/+53
| | | | | | | | | | | | Modify the base class for functional tests so that base scope and user information can be loaded from the client, which in turn was instantiated from cloud config. The base scope and user info will be used in tests, e.g when creating a user, we will use the domain from the base class to put the user in. The base project will be used as the default user's project. Change-Id: Ib01da8d8bfc11a06bf0d79fac2089ca5b9506670
* remove CLI from keystoneclientSteve Martinelli2016-03-101-143/+0
| | | | | | | | | | | | | | | the CLI has been deprecated for a long time, and many docs and install guides recommend using OSC instead of `keystone`. - removes CLI - removes man page from docs - removes CLI tests - removes `bootstrap` from contrib - removes entrypoint from setup.cfg implements bp: remove-cli Change-Id: Icbe15814bc4faf33f513f9654440068795eae807
* Implied RolesAdam Young2016-02-171-0/+99
| | | | | | | | | | | While the entity for an inference rule should be thought of as a resource, the rules are essentially relationships between roles. The `implied_role` API is linked with the role API, and thus the client functions are part of v3/role.py. However, it does not map completely cleanly to the Crud baseclass, and requires some custom URL generation. Change-Id: I80a40e88b571fe9b0eca3af8b705ea79f28eb904
* Implements base classes for functional testsSamuel de Medeiros Queiroz2016-01-044-0/+87
| | | | | | | | | | | | | | | | | | | | | | In the cross project workshop "Establishing key themes for the Mitaka cycle" [1] during the Mitaka summit, one of the agreed point was to implement functional tests for the client libraries. [2] Later on, this will serve to improve our backward compatibility for client libraries. See I72e4e9cfa0539f6b326a0296c065fa3cb754f8ae In preparation to implement the functional tests for both v2 and v3 clients, this patch initializes the new directories and adds the base test classes: V3ClientTestCase and V2ClientTestCase. Each class instantiates its specific keystoneclient version via os-client-config either based on a clouds.yaml config file or from the environment variables. [1] https://mitakadesignsummit.sched.org/event/edd78ade4c7c92581a7cabc26019a85a [2] https://etherpad.openstack.org/p/mitaka-crossproject-themes Change-Id: Ia73d72d5f87051fb46d733782275b548874a1def
* Update path to subunit2html in post_test_hookMatt Riedemann2015-09-021-1/+1
| | | | | | | | | | | | | | Per: http://lists.openstack.org/pipermail/openstack-dev/2015-August/072982.html The location of subunit2html changed on the images in the gate so update the path used in the post_test_hook. Long-term we should just use what's in devstack-gate. Change-Id: I5e50e7d7ad845aba26403df1df412c0a139a6dc7 Closes-Bug: #1491646
* Stop using .keys() on dicts where not neededBrant Knudson2015-08-061-2/+2
| | | | | | | | Iterating over a dict results in the keys. Using the 'in' operator on a dict checks if it's a key. Change-Id: I6affbfa1a79a9e8c0b5b304078a7a8e4e792eecd