summaryrefslogtreecommitdiff
path: root/openstackclient/tests/identity
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Changed the abstract columns and datalists from test cases of common ↵Jenkins2016-01-1416-777/+529
|\ | | | | | | and Identity"
| * Changed the abstract columns and datalists from test cases of common and ↵SaiKiran2016-01-1216-779/+531
| | | | | | | | | | | | | | | | | | | | | | Identity columns and datalist has been set in each test case in compute, which is not necessary. This patch abstract it out and remove all redundant code. Change-Id: I45a3582088161f12e60e7c933da8e7dcc0ae8e7b Closes-Bug: #1532384
* | Support non-interactive user password updateGuang Yee2016-01-111-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently user password update require interactive prompting of user's original password. This is problematic because we can't support non-interactive applications and therefore hinders automation. This patch make it possible by optionally accepting an '--original-password' argument. If specified, we would use it instead of prompting. DocImpact Change-Id: I2d994e8c2be949f7ae616ac1d1594fb94e1a27cd Closes-Bug: 1531360
* | Replace assertEqual(*, None) with assertIsNone in testsEinst Crazy2016-01-071-2/+2
| | | | | | | | | | | | | | Replace assertEqual(*, None) with assertIsNone in tests to have more clear messages in case of failure. Change-Id: I8964a10ae3529e978bfab1d8140f95da4b56615c
* | Merge "Implementation for project unset cmd for python-openstackclient."Jenkins2016-01-041-1/+47
|\ \
| * | Implementation for project unset cmd for python-openstackclient.Jude Job2016-01-041-1/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces a unit test class TestProjectUnset for testing unset cmd. Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Change-Id: Ib4a414d2313e3d37e48d1cb3639f064231aec508 Closes-Bug: #1486597
* | | Enabling domain lookup for project set v3 commandJude Job2015-12-311-5/+0
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | Currently the domain option for `project set` attempts to set a new domain that owns the project. This is actually an action that is denied by keystone server. Instead, the domain option should be used as a lookup, to find projects that exist in the non-default domain. Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Closes-Bug: #1524456 Change-Id: I30a3812184fe262667e09baa106d2275c2cbb981
* | Replace assertEqual(None, *) with assertIsNone in testsSaiKiran2015-12-171-2/+2
|/ | | | | | | | In python-openstackclient some test cases using asserEqual(None, *) instead of assertIsNone(). assertIsNone method provides clear error message. Change-Id: I3069a6436d11efa513ae94f21ceab46c498d6e25 Closes-Bug: #1527054
* Switch to ksa SessionDean Troyer2015-12-023-6/+7
| | | | | | | | * Change session imports to keystoneauth1 * Change keystoneclient.exception imports to keystoneauth1 * Change exceptions raised from internal API from keystoneclient to openstack.common Change-Id: I046d89f561d6fe04baae53726f9749d2e7fe2056
* Merge "better format remote IDs for identity providers"Jenkins2015-11-152-7/+8
|\
| * better format remote IDs for identity providersSteve Martinelli2015-11-122-7/+8
| | | | | | | | | | | | | | | | | | remote-ids are a list, and we should format these values as such, rather than python representations of lists/arrays. Closes-Bug: 1478995 Change-Id: Ia6ced0fab2435b8cb486822c676c0dee32613abe
* | Add capability to update description of an IdPlin-hua-cheng2015-11-121-0/+48
|/ | | | | Change-Id: I854067642bbfde6fdf84b22b9cc1de8afc7767c0 Closes-Bug: #1515815
* Import the module not the classSean Perry2015-11-041-5/+5
| | | | | | As requested during review 226922. Change-Id: Ic5222141e247ce33cf5dbee66667cee3040e1cc3
* Merge "Mark arguments for 'credential' commands as required"Jenkins2015-11-042-0/+116
|\
| * Mark arguments for 'credential' commands as requiredSean Perry2015-09-302-0/+116
| | | | | | | | | | | | | | | | | | | | | | According to the [1], 'user_id', 'type', and 'blob' are all required arguments for 'credential set' but the code treats them as optional. Set the 'required' flag and remove logic supporting missing arguments. [1]: https://github.com/openstack/keystone-specs/blob/master/api/v3/identity-api-v3.rst#credentials-v3credentials "spec" Change-Id: I597c9616ad744385fc6dd92379feb03daec54458 Closes-Bug: #1418837
* | remove url from v3 regionsSteve Martinelli2015-10-212-75/+6
| | | | | | | | | | | | | | | | | | | | | | the parameter "url" was removed from Keystone, it was only added for one release as part of an experimental support for adding service providers. BackwardsIncompatibleImpact Closes-Bug: 1506841 Change-Id: I7a62fbf1d9bfa8e6dd8d619e98c32b9860348d2e
* | Add test for role list --inheritedDean Troyer2015-10-071-0/+33
| | | | | | | | Change-Id: I216ab6c8ac903720ec67870a5171ae57a8f293aa
* | Evaluate --inherited in role listRudolf Vriend2015-10-061-0/+5
|/ | | | | | | | the --inherited option was not being passed into keystoneclient Closes-Bug: #1502822 Change-Id: I48170dc67b23cc9b0665b1e0f38118eea952f131
* Merge "Inherited info/option when listing role assignment"Jenkins2015-08-082-29/+127
|\
| * Inherited info/option when listing role assignmentSamuel de Medeiros Queiroz2015-08-062-29/+127
| | | | | | | | | | | | | | | | | | | | Adds inherited information when listing role assignments. In addition, it makes possible to list only inherited ones by adding --inherited option. Change-Id: Idf889603d584716da95e2c7b4880142fbd8291c4 Closes-Bug: 1370546
* | Fixes inherited role assignments CRUD callsSamuel de Medeiros Queiroz2015-08-061-8/+8
|/ | | | | | | | | | The paremeter to Keystone Client was passed as 'inherited', when it should be 'os_inherit_extension_inherited'. Closes-Bug: #1482254 Change-Id: I1cb46add532223ef0b9620763b1047cc80e19ec0
* Merge "Removes trailing blank in trust show"Jenkins2015-07-191-2/+2
|\
| * Removes trailing blank in trust showGilles Dubreuil2015-07-191-2/+2
| | | | | | | | | | | | | | Previously a blank character at the end of the roles value would remain Change-Id: I0961a5f9fb4b270a6055ee69898eadee315e416a Closes-Bug: 1474707
* | enhance tests for user v3Guojian Shao2015-07-171-0/+33
| | | | | | | | | | Change-Id: Ib17ba0cd71068ba8d7e7665160daf3ae0735971b Related-Bug: #1475357
* | Merge "only return endpoints that have url"Jenkins2015-07-171-0/+40
|\ \
| * | only return endpoints that have urlGuojian Shao2015-07-161-0/+40
| |/ | | | | | | | | Change-Id: I97a502252c0c377fce573e92b83c0122812f6f80 Closes-Bug: #1474656
* | add --project-domain option for user v3Guojian Shao2015-07-161-0/+62
|/ | | | | | | | | user v3 create/set only support --project option, we need --project-domain to prevent collisions between project names exist. Change-Id: I2d62e5b9bb6df4c5c5a9542514faf2e4365bb18b Closes-Bug: #1475357
* openstack catalog list always returns publicURL for internalURL and adminURLMartin Schuppert2015-07-081-8/+10
| | | | | | | | With this change 'openstack catalog list' returns the correspoding URL for publicURL, internalURL and adminURL in _format_endpoints . Change-Id: I5d946c9d70a2d3c22a7cc77067fec8e2e9aa4940 Closes-Bug: 1472629
* Merge "Enables retrieval of project's parents and subtree"Jenkins2015-06-252-0/+169
|\
| * Enables retrieval of project's parents and subtreeRodrigo Duarte Sousa2015-06-092-0/+169
| | | | | | | | | | | | | | | | | | | | | | | | Adds the possibility to retrieve a project and list its parents and subtree in the hierarchy. Co-Authored-By: Rodrigo Duarte <rodrigods@lsd.ufcg.edu.br> Co-Authored-By: Samuel de Medeiros Queiroz <samuel@lsd.ufcg.edu.br> Implements: bp hierarchical-multitenancy Change-Id: I874f6faffc8a2db9d99f12cbe0a69c0a30c0d9df
* | Add support to inherited project role grant callsSamuel de Medeiros Queiroz2015-06-221-0/+46
|/ | | | | | | | | | | | | | Once inherited project role grant calls are implemented on python-keystoneclient, python-openstackclient also should support such calls. This patch add such support as well as its related tests. Co-Authored-By: Raildo Mascena <raildo@lsd.ufcg.edu.br> Change-Id: Id72670be8640e5c6e2490a6ef849e9ec3493b1a9 Implements: blueprint hierarchical-multitenancy
* Not use the deprecated argumentDave Chen2015-06-081-1/+1
| | | | | | | | | `project` argument is deprecated in keystoneclient for V3 API, and use `default_project` instead, should use `default_project` as the argument name in the openstackclient accordingly. Change-Id: Ib9d70801c933a184afcdab75204393efa764fa87 Closes-Bug: #1462389
* add --domain argument to v3 project setGuojian Shao2015-05-291-0/+15
| | | | | | | | | Currently argument 'domain' is not supported by command 'os project set', but it is required by keystone v3 update project API to match the domain id. Closes-Bug: #1460122 Change-Id: I1b32f67f78b369f6134a74cdf9a4811b7539d44b
* Merge "Federation Service Providers CRUD operations"Jenkins2015-05-062-0/+428
|\
| * Federation Service Providers CRUD operationsMarek Denis2015-04-152-0/+428
| | | | | | | | | | | | | | | | | | Adds CRUD support for service providers as it's now available through keystoneclient Closes-Bug: 1435962 Depends-On: If802e8a47e45ae00112de3739334b4b5482d0500 Change-Id: Ic55101e50209070aa49ca2adc91c89ba754c8c68
* | Merge "Add parent field to project creation"Jenkins2015-04-302-0/+110
|\ \
| * | Add parent field to project creationRodrigo Duarte2015-03-232-0/+110
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding the possibility to create projects hierarchies by adding the parent field in the create project call. Co-Authored-By: Victor Silva <victor@lsd.ufcg.edu.br> Implements: bp hierarchical-multitenancy Change-Id: I4eac4f5bc067634cc38c305dacc59ab1da63c153
* | | Add support to remote_idMarco Fargetta2015-03-302-7/+231
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The federation APIs for the identity providers introduce a new parameter for every identity provider, named remote_ids, which contains a list of entity ID associated with. This parameter can be provided during the creation of the identity provider and can be updated at any time. For more information look at the blueprint: https://blueprints.launchpad.net/keystone/+spec/idp-id-registration This patch add the support to this new parameter in the command line by inserting the option "--remote-id" in the following commands: - "identity provider create" - "identity provider set" Additionally, the values can be read from a file, specified by "--remote-id-file", containing an entity id per line. Change-Id: Ie93340ee57e54128daa70d8a7bd0a9975ff7eef4 Depends-On: I12a262c55b5f6b5cc7007865edf30f14269da537 Implements: blueprint idp-id-registration
* | Merge "Add project and domain params to network create"Jenkins2015-03-241-0/+7
|\ \ | |/ |/|
| * Add project and domain params to network createColleen Murphy2015-03-191-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Without this patch, openstackclient has no way to specify to which project a network belongs upon creation. Instead, it uses the project ID that the user is authenticating with to fill the tenant_id column. This is a problem because an admin user is unable to specify a project for a non-admin network. To fix this and to improve feature parity with the neutron client, this patch adds project and domain parameters to the network create command and uses the given project name to look up the project ID. Neutron does not allow the project to be changed after creation, so no such parameter has been added to the neutron set command. Neutron calls the field 'tenant_id', but this change exposes the parameter as '--project' to support the newer terminology. If no project is specified, the client defaults to the previous behavior of using the auth project. Change-Id: Ia33ff7d599542c5b88baf2a69b063a23089a3cc4
* | Merge "Add identity v3 catalog show"Jenkins2015-03-101-0/+34
|\ \
| * | Add identity v3 catalog showTerryHowe2015-03-091-0/+34
| | | | | | | | | | | | Change-Id: Ia6b6c25eded43b899b3aa026227ad2859f1c67dd
* | | Merge "Add identity v3 catalog list"Jenkins2015-03-101-0/+84
|\ \ \ | |/ /
| * | Add identity v3 catalog listTerryHowe2015-03-071-0/+84
| |/ | | | | | | Change-Id: Id4c1371ca28b9fd884ec75061edca700fd69886c
* | Fix identity v2 catalog listTerryHowe2015-03-041-11/+24
|/ | | | | | | The v2 catalog list was only printing the last endpoint in the catalog. Change-Id: I5401a11eedb3be1513c86261329de50c8ad82720
* Merge "Restrict groups and users from changing domains"Jenkins2015-02-101-46/+0
|\
| * Restrict groups and users from changing domainsSteve Martinelli2015-02-091-46/+0
| | | | | | | | | | | | | | | | | | | | Similar to projects, we shouldn't allow users and groups to change domains. The server side tosses up an error but osc should restrict that behaviour in the first place. Related-Bug: #1418384 Change-Id: I860291a5859c576021b18e35d1a12c32abfb6ca5
* | Merge "Implement trust in identity v3 api"Jenkins2015-02-102-1/+248
|\ \ | |/ |/|
| * Implement trust in identity v3 apiSteve Martinelli2015-02-082-1/+248
| | | | | | | | | | | | | | | | | | | | | | Added new module in identity v3 api to handle create, read, and delete operations of trust resources. Co-Authored-By: Lance Bragstad <lbragstad@gmail.com> Co-Authored-By: Steve Martinelli <stevemar@ca.ibm.com> Closes-Bug: #1413718 Change-Id: I2b360b141ff70d4f396466abede859a3db6644f4
* | fix the wrong order of assertEqual argswanghong2015-01-2718-213/+213
|/ | | | | | Let's fix them thoroughly. Change-Id: I8a1f042fb614b05c9836a49041f3883638b870b0