summaryrefslogtreecommitdiff
path: root/openstackclient/identity/v2_0
Commit message (Collapse)AuthorAgeFilesLines
* user create v2.0 depends on tenantId in responseSteve Martinelli2014-08-041-3/+4
| | | | | | | | User create for v2.0 no longer always contains a tenantId in the response. Add a guard to check for tenantId first before pop'ing it. Change-Id: I428dbc26520bb86efad33768ce04f584217ad168 Closes-Bug: #1352119
* Normalize more help stringsDean Troyer2014-07-241-1/+1
| | | | Change-Id: I2b21bc904e35c1cc50da369d148e607fe3e8cf90
* Rename token classes to match commandDean Troyer2014-06-271-7/+9
| | | | | | | The token create/delete commands were renamed but not the class names. Rename them to match. Change-Id: Icbf9c0a954ed0332fa4c99e4ee2612bb11f89e3a
* Merge "Change the token verb to issue/revoke"Jenkins2014-06-181-2/+2
|\
| * Change the token verb to issue/revokeTerry Howe2014-06-181-2/+2
| | | | | | | | | | | | | | | | | | Change the token verb to issue/revoke as documented in: https://wiki.openstack.org/wiki/OpenStackClient/Commands#token https://wiki.openstack.org/wiki/OpenStackClient/Commands#Actions Change-Id: I44f77f98ad3269c4f2149301c204804dcb75ac81
* | Merge "Add token delete command for identity v2"Jenkins2014-06-181-0/+22
|\ \ | |/
| * Add token delete command for identity v2Terry Howe2014-05-231-0/+22
| | | | | | | | | | | | | | | | Identity v2 has undocumented support for token delete and keystoneclient also has support. Change-Id: Ib98d17958ceb88f7b63471691dee71fdb884ce2e Closes-Bug: #1318442
* | Merge "replace string format arguments with function parameters"Jenkins2014-06-107-30/+30
|\ \
| * | replace string format arguments with function parametersChristian Berendt2014-05-207-30/+30
| |/ | | | | | | | | | | | | | | There are files containing string format arguments inside logging messages. Using logging function parameters should be preferred. Change-Id: Ic749ac9eb55564ed631d57055a5a4dfc3aebd169
* | Fixed several typos throughout the codebaseAlex Gaynor2014-05-211-1/+1
|/ | | | Change-Id: I048ee857fc1215fea7f60978364894e1b5abdf66
* Merge "Make endpoint commands more consistent"Jenkins2014-04-232-98/+27
|\
| * Make endpoint commands more consistentTerry Howe2014-03-282-98/+27
| | | | | | | | | | | | | | | | | | | | | | | | Make endpoints more consistent across create, show, etc * Make the name option required for create * Use a common function to fetch services by id, name or type * Have show work by endpoint id or by service id, type or name * Have show display all the fields by default * Remove capability to filter queries by attribute value pairs Change-Id: Idaa4b8d930ba859fd62de777e44a10b1ed58c79b Partial-Bug: #1184012
* | Fix the project option to user list so it filtersTerry Howe2014-04-011-2/+17
| | | | | | | | | | | | | | | | | | | | The --project option to the user list command was not implemented * Allow users to be filted by project * Support id or name of project with the find_resource command * Make sure the report does not contain duplicates Change-Id: Ic0e10cccd7749d38a7d4b80bbdc68e61a660084b Closes-Bug: #1177255
* | Correct display of project/tenant id on display of credentialsChris Johnson2014-03-211-2/+4
| | | | | | | | | | | | | | | | | | This change corrects the display of ec2 credentails within the ListEC2Creds method. Added explicit headers and corrected data listt o specify tenant_id instead of project id. Change-Id: I2ea579082bee800d774f202bdc38e2d546e57e77 Closes-Bug: #1292337
* | Add ability to set key value pairs in projectsTerry Howe2014-03-061-0/+22
|/ | | | | | | | | Add supporto of extra key value pairs for projects (aka tenants) * Added option --property key=value to create and set commands * Support for versions v2 and v3 Change-Id: I84064b8b308579d1b66c83b1ed3d1a37614ec087 Closes-Bug: #1220280
* Merge "Fix some help strings"Jenkins2014-02-233-3/+3
|\
| * Fix some help stringsAndreas Jaeger2014-02-213-3/+3
| | | | | | | | | | | | | | | | | | | | This fixes some errors and inconsistencies I found reviewing the help strings: * Capitalize help strings * Add missing space between words (in multi-line strings) * Improve wording Change-Id: I2fb31ab4191c330146e31c1a9651115a6657769a
* | Add ability to prompt for passwords for user create and setTerry Howe2014-02-211-0/+17
|/ | | | | | | | | | * Add get_password method to the utilities * Add --password-prompt option * Call the get_password method if a prompt is requested * Various tests Change-Id: I1786ad531e2a2fbcc21b8bc86aac0ccd7985995a Closes-Bug: 1100116
* Merge "Remove copyright from empty files"Jenkins2014-01-231-14/+0
|\
| * Remove copyright from empty filesAlexander Ignatov2014-01-201-14/+0
| | | | | | | | | | | | | | | | | | According to policy change in HACKING: http://docs.openstack.org/developer/hacking/#openstack-licensing empty files should no longer contain copyright notices. Change-Id: Iba09a00f24dfbd1cd03c1c9f70ea216788e64d93 Closes-Bug: #1262424
* | Add token create subcommand for identity v2 apiQiu Yu2014-01-171-0/+38
|/ | | | | | | | | | Implements token create subcommand which is an equivalent of keystone token-get command. Original "wrap" parameter for keystone token-get is not implemented yet due to cliff Bug #1269299 This is a part of: blueprint add-identity-token-support Change-Id: I9e4de93306f2f5959717b5219621da03961524d8
* Identity v3 testsDean Troyer2013-09-091-2/+8
| | | | | | | | | * Add project, user, role and service v3 tests * Fix issues in commands with enable/disable * Make commands and tests more consistent between versions * Make formatting and comments more consistent Change-Id: Id21e7a5abd7e421a7742f937861ec46b53095fc7
* Prepare for Identity v3 testsDean Troyer2013-09-093-38/+93
| | | | | | | | | * Split identity/fakes.py for v2_0 and v3 * Split identity/test_identity.py for v2_0 and v3 * Fix issues in commands with enable/disable * Clean up v2 commands Change-Id: I6e536b6a130fc556dbd7dcf9f2e76d939ca1bc1c
* Add Identity v2 role and service testsDean Troyer2013-09-041-8/+19
| | | | | | | | | * Add current auth info (auth_ref) to ClientManager * Fix identity.v2_0.role.ListUserRole to get default user/project from ClientManager.auth_ref * Fix identity.v2_0.role.AddRole call to roles.add_user_role() Change-Id: Ie8bf41c491d97b0292a2b86bdc9b7580989a7f97
* Add Identity v2 user testsDean Troyer2013-08-191-28/+42
| | | | | | | | | * implement Identity command tests for v2 user Also re-work the user create and set commands for exclusive options (--enable|--disable) to actually behave properly. Yay tests! Change-Id: Ie1ec2569b3d85a9d556ee70f2e8f69fd2a3c03c8
* Add Identity v2 project testsDean Troyer2013-08-161-17/+27
| | | | | | | | | | | | * establish the the form of cliff command classes * implement some common fake objects * implement Identity command tests for v2 project * fix stdout/stderr capture Also re-work the project create and set commands for exclusive options (--enable|--disable) to actually behave properly. Yay tests! Change-Id: Icbb313db544c1f8dd3c9af7709971838b5a4d115
* Remove tenant round 2 - Identity APIDean Troyer2013-07-313-110/+199
| | | | | | | Rename everything in the Identity v2 code including the file and classes. * role, tenant, user Change-Id: I0b99c60a24f5875120136d2f216aa3b6bce1c641
* Begin Python 3 compatabilityDean Troyer2013-07-296-21/+28
| | | | | | | | | | | * use six.iteritems() * replace basestring with six.string_types * convert print statements to functions (they're all debugging and should be removed eventually anyway) * clean up OpenStack copyright: LLC -> Foundation Change-Id: Icb14212bcb408e63816bfec3922a697bc1a6c946
* Add --catalog to service showDean Troyer2013-07-161-23/+44
| | | | | | Shows endpoints from the service catalog rather than the system services. Change-Id: I842916af9f7c0a76c4d3e27e419bf0fec059ec78
* Remove api = apiName calls from each methodSteve Martinelli2013-07-126-29/+0
| | | | | | | | | | | As discussed in https://review.openstack.org/#/c/36352/ for each command, we were setting api = identity or volume... etc, this was for an old way of calling commands that are is no longer used. Also removed openstackclient/common/command.py Change-Id: I2705f35d343f2ae729dc22d6aed0b852b2f8ca19
* Add EC2 credentials CRUDDean Troyer2013-07-031-0/+185
| | | | | | ec2 credentials: create, delete, list, show Change-Id: I82ff84ed433cd9a2da9534bf5f584a2e1a3fe68c
* Fix flake8 errors in anticipation of flake8 patch.Monty Taylor2013-05-143-4/+8
| | | | Change-Id: Ifdc4322b699f2bd91a6900e55695acd3d736568e
* Multiple API version supportDean Troyer2013-02-061-2/+2
| | | | | | | | | | | | | | | | * Use multiple entry point groups to represent each API+version combination supported * Add some tests Try it out: * Right now only '* user' commands have multiple overlapping versions; you can see the selection between v2.0 and v3 by looking at the command help output for 'tenant' vs 'project': os --os-identity-api-version=2.0 help set user os --os-identity-api-version=3 help set user Change-Id: I7114fd246843df0243d354a7cce697810bb7de62
* Upgraded to PEP8 1.3.3 to stay aligned with Nova, etc.Josh Kearney2013-01-315-175/+98
| | | | | | | | Made all the necessary changes to pass new PEP8 standards. Also cleaned up docstrings to conform to the HACKING stanards. Change-Id: Ib8df3030da7a7885655689ab5da0717748c9edbe
* Standardize on a copyright header and ensure all files have them.Josh Kearney2013-01-246-60/+64
| | | | Change-Id: I64812bca01ca655c9cf9239a0daea84907082a29
* Remove incorrect 'raise'.Josh Kearney2013-01-221-2/+0
| | | | | | Fixes bug 1096102. Change-Id: Ibcdccd949566f47bb516c7562149d6b0100fce18
* Refactor cliff.Command.run()Dean Troyer2012-06-205-80/+80
| | | | | | | * All commands now perform their action in take_action(). Those producing output are derived from DisplayCommandBase. Change-Id: Ic93ba9a2ad449d84242b6aa8624b41379c4fb79a
* Fix pep8 issues.Clark Boylan2012-06-131-1/+1
| | | | | | | | Fix several pep8 issues and pin the pep8 test to pep8 version 1.1. This should prevent future changes from being unmergable by the pep8 gate after a pep8 upgrade. Change-Id: I4678a9179579fb5c7afe795fb43a8a89a99ad717
* removing print call in roles get_dataMatt Joyce2012-05-231-1/+0
| | | | Change-Id: I2aebf6099821212d4bd4b4b6d78b9752085168b2
* Merge "Fix 'set user' command"Jenkins2012-05-221-1/+6
|\
| * Fix 'set user' commandDean Troyer2012-05-181-1/+6
| | | | | | | | | | | | | | | | | | * missing --name arguemnt in parser for SetUser() * correct Identity api call for SetUser() Fix bug 1001384 Change-Id: I51169a0585c1bfe106ddd2e390269f69fc32852c
* | Add role CRUD commandsDean Troyer2012-05-181-0/+268
|/ | | | | | * add {add|create|delete|list|remove|show|user-list} role commands Change-Id: I27129168a9f58154fcdb062a533fa926737f822f
* Add endpoint CRUD commandsDean Troyer2012-05-181-0/+226
| | | | | | * add {create|delete|list|show} endpoint commands Change-Id: Ife9fa789d5818d63288b09687b43d802b1b97858
* Clean up tenant and serverDean Troyer2012-05-161-23/+17
| | | | | | | | * remove '_' from class names * add class name to log instances * some cleanups to HACKING Change-Id: I1f6334318ee0d7d83cd3cea0e71ba4f05dd2b5c5
* Merge "Add user CRUD commands"Jenkins2012-05-161-0/+247
|\
| * Add user CRUD commandsDean Troyer2012-05-151-0/+247
| | | | | | | | | | | | | | * add {create|delete|list|set|show} user commands * fix pep8 issues Change-Id: I46fe2375b8b4f95b82d8ba31ee8fb660a067d50a
* | Update service commandsDean Troyer2012-05-151-24/+78
|/ | | | | | | * add {create|delete} service * allow 'service' arg to also search type attribute in show command Change-Id: I992359dc95fab1fbdab0666d5cbb75e44ba6e0f3
* Revise command boolean flagsDean Troyer2012-05-111-29/+54
| | | | | | | * use --enable|--disable form for boolean 'enabled' value * clean up logging strings Change-Id: Ib4016bbef1763c27ec5a9edf36b926dc0d0b265c
* Add tenant CRUD commandsDean Troyer2012-05-112-79/+156
| | | | | | | | | * add {create|delete|set} tenant commands * move get_XXXX_properties() to common.utils.get_item_properties() add mixed_case_fields as an optional arg Change-Id: I7b3bd9cefb08e39730886b31213cbe422b5a8453
* Add tenant commands, work on serviceDean Troyer2012-05-102-2/+183
| | | | | | | * adds {list|show} tenant * fleshes out service commands (still WIP) Change-Id: I9dabb6ed3f128a30f140146928320f033d097a06