summaryrefslogtreecommitdiff
path: root/keystoneclient/generic/client.py
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
* 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-281-5/+6
| | | | | | | | | | | 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 vim headerEric Guo2014-02-081-2/+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 "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-301-0/+2
|\ \ | |/ |/|
| * Adjust import items according to hacking import ruleEric Guo2014-01-171-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Replace OpenStack LLC with OpenStack Foundation0.4.1ZhiQiang Fan2013-10-171-1/+1
| | | | | | | | | | 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
* 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
* Fix and enable H401Dirk Mueller2013-06-271-8/+8
| | | | | | Remove leading spaces from doc comments. Change-Id: I75b055c0d64dda478c63839d44158e301900107f
* 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
* 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
* pep8 1.1 changes and updatesJoe Heck2012-06-011-10/+14
| | | | Change-Id: I8bc3582bb3f35a3d841bb1e8c03b62ba61ff92d7
* Backslash continuations (python-keystoneclient)Zhongyue Luo2012-03-171-4/+4
| | | | | | | | Fixes bug #940023 Backslash continuations removal for python-keystoneclient Change-Id: I816fc39ced20bb8ba8a42d3f07a03da94a76f8ea
* Support for version and extension discoveryessex-3Ziad Sawalha2012-01-201-0/+205
- 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