summaryrefslogtreecommitdiff
path: root/keystoneclient/generic
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Remove log translations in python-keystoneclient"Jenkins2017-05-161-3/+3
|\
| * Remove log translations in python-keystoneclientwingwj2017-03-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Log messages are no longer being translated. This removes all use of the _LE, _LI, and _LW translation markers to simplify logging and to avoid confusion with new contributions. See: http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html Change-Id: Ia77819cbb133903d20e821bff0c45766b11ef07b
* | Deprecate the generic clientJamie Lennox2016-12-071-0/+6
|/ | | | | | | | | | The generic client has been around and unused for a really long time. I dont think it works at all and was never updated to support V3 concepts. Realistically we can probably just remove it and noone will notice, but give it a quick deprecation cycle. Closes-Bug: #1647930 Change-Id: Ie68c8995275bcd55aede49d8f4af4e0d172de089
* Fix D401 PEP257 violation.Navid Pustchi2016-04-231-5/+5
| | | | | | | | 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
* remove CLI from keystoneclientSteve Martinelli2016-03-101-50/+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
* Address hacking check H405lin-hua-cheng2016-01-131-2/+1
| | | | | | | | | Previously, there were a string of commits to keystone that addresed ignored hacking checks. This commit does the same for H405 in keystoneclient. This also modifies our tox.ini so that we no longer ignore H405 violations. Change-Id: I2af152e5425a0e9c82314039fdbb90d661c22680 Closes-Bug: 1482773
* Make __all__ immutableDolph Mathews2015-10-011-2/+2
| | | | | | | | | Using a mutable type implies that it's acceptable for the set of publicly-accessible attributes to be mutated at runtime, which defeats their intended purpose of documenting the public interface. Tuples are immutable. Change-Id: Ib3ab93224ba240040b08ece481ef5ba620c3f658
* Proper deprecation for HTTPClient.request methodsBrant Knudson2015-08-041-6/+6
| | | | | | | | | | | | | HTTPClient.request and related methods weren't properly deprecated since they were only mentioned in the docstrings. Proper deprecation requires use of warnings/debtcollector and documentation. Also, fixed places where the deprecated request method was called. bp deprecations Change-Id: I0a16933252937ca046793bb6eb2e5cc5da03c9ae
* Cleanup exception loggingBrant Knudson2014-11-201-5/+5
| | | | | | | LOG.exception() already prints the exception, so passing the exception to it isn't useful. Pass a message instead. Change-Id: If5b5be1e275a4688a04ba4ccc582149a3a5f2bd2
* I18nBrant Knudson2014-10-282-10/+13
| | | | | | | | | | | Keystoneclient didn't provide translated messages. With this change, the messages are marked for translation. DocImpact Implements: blueprint keystoneclient-i18n Change-Id: I85263a71671a1dffed524185266e6bb7ae559630
* Prefer () to continue line per PEP8Brant Knudson2014-04-041-4/+4
| | | | | | | | There were some long lines that were split using \ rather than (). PEP8 recommends using () -- http://legacy.python.org/dev/peps/pep-0008/#maximum-line-length Change-Id: I8e140e507d0d9991094be13ebafa7fc700c1a02e
* Remove blank space after printzhang-jinnan2014-03-031-4/+4
| | | | Change-Id: Ifdc3b61d811bbf5651fd1b41ef75805bb9aff81e
* Merge "Remove vim header"Jenkins2014-02-132-4/+0
|\
| * Remove vim headerEric Guo2014-02-082-4/+0
| | | | | | | | | | | | | | | | We don't need vim modelines in each source file, it can be set in user's vimrc. Change-Id: Ic7a61430a0a320ce6b0c4518d9f5d988e35f8aae Closes-Bug: #1229324
* | Merge "Improve output of "keystone help discover""Jenkins2014-02-101-11/+0
|\ \ | |/ |/|
| * Improve output of "keystone help discover"Andreas Jaeger2014-02-051-11/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current output of "keystone help discover" is: usage: keystone discover Discover Keystone servers, supported API versions and extensions. Usage:: $ keystone discover Keystone found at http://localhost:35357 - supports version v1.0 (DEPRECATED) here http://localhost:35357/v1.0 - supports version v1.1 (CURRENT) here http://localhost:35357/v1.1 - supports version v2.0 (CURRENT) here http://localhost:35357/v2.0 - and RAX-KSKEY: Rackspace API Key Authentication Admin Extension - and RAX-KSGRP: Rackspace Keystone Group Extensions The reason is that our parser strips away all the line ends. Let's rephrase the text so that it formats more nicely. Now the output is: Discover Keystone servers, supported API versions and extensions. Change-Id: Ic9f9e3e407ae299eb091a0a7093c955dc6cab8f2
* | Merge "refactor handling of extension list"Jenkins2014-02-081-25/+11
|\ \ | |/ |/|
| * refactor handling of extension listDolph Mathews2014-01-291-25/+11
| | | | | | | | Change-Id: I922c17523197497139da92d8be33dba10349a369
* | Merge "Adjust import items according to hacking import rule"Jenkins2014-01-302-1/+4
|\ \ | |/ |/|
| * Adjust import items according to hacking import ruleEric Guo2014-01-172-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adjust import items and add missing blank lines acording to http://docs.openstack.org/developer/hacking/#imports {{stdlib imports in human alphabetical order}} \n {{third-party lib imports in human alphabetical order}} \n {{project imports in human alphabetical order}} \n \n {{begin your code}} hacking project also enforce some checks for import group. Let make the change in keytoneclient Change-Id: Ic83bd5ee426905588f4a2d555851a9a01fc69f02
* | Fix discover command failed to discover keystone in sslJose Castro Leon2014-01-271-9/+10
| | | | | | | | | | | | | | | | | | Fix the blocking behavior of keystone discover when trying to obtain information of the local keystone. It does not block while checking and checks both protocols HTTP and HTTPS Change-Id: I43616a348bf04163bf7967a12957556d7edfde40 Closes-Bug: #1270154
* | Fix discover command failed to read extension list issueQiu Yu2014-01-161-1/+1
|/ | | | | | | | | Fix the key error which caused discover command failed to read the response body of extension list result. This change also added test cases to cover the use case of generic client extension discovery. Change-Id: Id687f8d73cead28f594de00d3b5ff9086558947b Closes-Bug: #1266710
* Fix python3 incompatible use of urlparseClint Byrum2013-11-141-1/+1
| | | | | | | | | | | | | | Use six to make it work. While we're not yet able to gate keystoneclient on py33, we still need keystoneclient to work when keystoneclient is included in other libraries' test suites. This was discovered while working on python3 for python-tuskarclient. Note that together with I65c28896d1551fd537dd7774e87bc479a477a7ab keystoneclient can be used safely in python-tuskarclient's py33 tests. Closes-bug: #1239802 Change-Id: Ie6d31dc5fae7e63bb31a5192fa6765fe35dd026a
* PEP 8 Public and internal interfacesBrant Knudson2013-10-301-0/+4
| | | | | | | | | | Define which interfaces are public and which are internal based on PEP 8. For reference, PEP 8 section is here: http://www.python.org/dev/peps/pep-0008/#public-and-internal-interfaces Change-Id: I14233796b7838b78fbd355014478f3e326542966
* Replace OpenStack LLC with OpenStack Foundation0.4.1ZhiQiang Fan2013-10-172-2/+2
| | | | | | | | | | Some files still use trademark OpenStack LLC in header, which should be changed to OpenStack Foundation. NOTE: tools/install_venv.py is not touched, should sync with oslo Change-Id: I01d4f6b64cf1a152c4e190407799ce7d53de845f Fixes-Bug: #1214176
* Add apiclient.exceptions hierarchyAlessio Ababilov2013-08-201-2/+3
| | | | | | | | | | | | | | The new apiclient.exceptions hierarchy is more comprehensive and it covers almost all HTTP error status codes. These exceptions can be used in novaclient, keystoneclient, glanceclient, and other client projects thus providing a single inteface. Users can have benefit from OpenStack clients raising exceptions of known classes while now every client has its own classes making difficult to catch, e.g., NotFound for every client. Change-Id: Ia7b25880e0ffca3526525a0f0e77c7e77c4f0076
* Merge "python3: Add basic compatibility support"Jenkins2013-08-141-2/+4
|\
| * python3: Add basic compatibility supportChuck Short2013-08-041-2/+4
| | | | | | | | | | | | | | | | Use six.iteritems to replace dictionary.iteritems() on python2 or dictionary.items() on python3. Change-Id: I623009200f3a90985a2c0178673df7d54b36a686 Signed-off-by: Chuck Short <chuck.short@canonical.com>
* | Rename client.py to httpclient.pyJamie Lennox2013-08-101-10/+10
|/ | | | | | | | | | | | | The discoverable entry point is to be client.Client however adding this functionality to the current client.py is impossible as we end up with circular dependencies. This patch simply renames the current client.py to httpclient.py to make future patches that will modify client.py more readable. Required for: blueprint api-version-discovery Change-Id: Ibcea03f6e1df0ae05329297166a8b8117fc3ce7b
* flake8: fix alphabetical imports and enable H306Dolph Mathews2013-08-011-1/+1
| | | | Change-Id: I0f4fcc9796e8529e7217dc24abe95660633cad33
* Merge "Fix and enable H401"0.3.1Jenkins2013-06-281-8/+8
|\
| * Fix and enable H401Dirk Mueller2013-06-271-8/+8
| | | | | | | | | | | | Remove leading spaces from doc comments. Change-Id: I75b055c0d64dda478c63839d44158e301900107f
* | Use Python 3.x compatible print syntaxDirk Mueller2013-06-231-2/+2
|/ | | | | | | | Adding an extra pair of braces helps here to let Python 3.x interpret it as print function, while not confusing the Python 2.x print operator. Change-Id: I05af267ecfbcc80753726743fdf82c330350afcb
* Make keystone client handle the response code 300.Nachiappan VR N2013-03-131-1/+5
| | | | | | | | | | | Keystone discover command currently fails to list the keystone server. Fix is made such that client handle the response code 300 from the keystone server. Fixes Bug #1136476 Change-Id: Iada31f1e274aade90aa4b4be2a136793a0ba64d7
* Fix incomplete sentence in helpDolph Mathews2013-02-061-3/+1
| | | | | | | `keystone help` only pulls a one line summary from docstrings, so this summary needed to be condensed. Change-Id: I9b08c6a8153101b1cc338955078d0d3b6a0aa02e
* Use requests module for HTTP/HTTPSDean Troyer2012-12-181-6/+6
| | | | | | | | | | | | | * Implement correct certificate verification * Add requests to tools/pip-requires * Fix OS_CACERT env var help text * Add info to README * Rework tests to use requests Pinned requests module to < 1.0 as 1.0.2 is now current in pipi as of 17Dec2012. Change-Id: I120d2c12d6f20ebe2fd7182ec8988cc73f623b80
* updating keystoneclient doc themeJoe Heck2012-10-011-7/+9
| | | | | | | | | | adding in openstack theming enabling last update from git removing old manual references to API, converted entirely to autodoc updated .gitignore fixed docstring warnings and errors Change-Id: Id22ddc446331d52cbf56c3462d8b532fc37f64ac
* pep8 1.1 changes and updatesJoe Heck2012-06-011-10/+14
| | | | Change-Id: I8bc3582bb3f35a3d841bb1e8c03b62ba61ff92d7
* Backslash continuations (python-keystoneclient)Zhongyue Luo2012-03-172-8/+8
| | | | | | | | Fixes bug #940023 Backslash continuations removal for python-keystoneclient Change-Id: I816fc39ced20bb8ba8a42d3f07a03da94a76f8ea
* Support for version and extension discoveryessex-3Ziad Sawalha2012-01-203-0/+264
- Supports unauthenticated call to Keystone to discover supported API versions - Added command-line support (usage: keystone discover) - Added client support (keystoneclient.genenric client). Client returns dicts, whereas shell command prints formated output. - Added tests for genenric client - Replicates 'nove discover' in python-novaclient - Starts to address blueprint keystone-client - keystone discover output looks like this: $ keystone discover Keystone found at http://localhost:35357 - supports version v1.0 (DEPRECATED) here http://localhost:35357/v1.0 - supports version v1.1 (CURRENT) here http://localhost:35357/v1.1 - supports version v2.0 (BETA) here http://localhost:35357/v2.0 - and HP-IDM: HP Token Validation Extension - and OS-KSADM: Openstack Keystone Admin - and OS-KSCATALOG: Openstack Keystone Catalog Change-Id: Id16d34dac094c780d36afb3e31c98c318b6071ac