summaryrefslogtreecommitdiff
path: root/troveclient/tests/test_shell.py
Commit message (Collapse)AuthorAgeFilesLines
* remove unicode from codelikui2021-01-031-23/+23
| | | | | Change-Id: Iadc87779bf513c9d04847b6cf8ecbc60b300d7db Implements: blueprint remove-unicode
* Remove sixwangzihao2020-10-131-3/+3
| | | | | | Remove all usages of six. Change-Id: I6ea8d1cdc3060d5c2a4311c7454b66ba75109b0c
* Use unittest.mock instead of third party mockSean McGinnis2020-04-181-1/+1
| | | | | | | | Now that we no longer support py27, we can use the standard library unittest.mock module instead of the third party mock lib. Change-Id: Ib83e626f51e6e01898bb7931c1660a1a548500f3 Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
* Fix token response mockLance Bragstad2017-07-261-1/+1
| | | | | | | | | | | | | | | The unit tests mock tokens from keystoneauth. One of the responses being returned from a mocked keystoneauth method was returning a v2.0 token that didn't have the right expiration attribute of a v2.0 token. This was caught by keystoneauth 3.0.1, which underwent a significant refactor and added a bunch of new functionality for version discovery. Keystoneauth was expecting `expires` to be in the token but instead the mock was using `expires_at`, which isn't a valid v2.0 token attribute. Closes-Bug: 1706538 Change-Id: Iea77ef54585d0b3480369e9f5df629e3f46f7e3b
* switch to keystoneauthSteve Martinelli2016-05-221-9/+7
| | | | | | | move troveclient to keystoneauth as keystoneclient's auth session, plugins and adapter code has been deprecated. Change-Id: I3d57dde9c013038accbab8cc30d9622a142d0f71
* Remove RAX-specific auth in troveclientSwapnil Kulkarni2014-12-091-1/+3
| | | | | | | | | Author: Swapnil Kulkarni <swapnilkulkarni2608@gmail.com> Co-Authored-By: Nikhil Manchanda <SlickNik@gmail.com> Co-Authored-By: Craig Vyvial <cp16net@gmail.com> Change-Id: I250777890a1f5240c5f14290cf02eb5a7b34b434 Closes-Bug: #966329
* Adds support for Keystone V3 APIBob Thyne2014-12-011-0/+366
| | | | | | | | | | | | | | | Updated trove client to support Keystone V3 API. The Keystoneclient session object is used for authentication, retrieving the service catalog and HTTP connection/session management. Added additional CLI parameters for Keystone V3. Added tests using requests_mock instead of mocking completely the session object like the previous failed patch: https://review.openstack.org/#/c/102315 Change-Id: Ib804c0a45b3b4d3f8670ec642b2c2fd1be6cd656
* Reverse fix for 1323866 as it regressed trove CLIAmrith Kumar2014-11-101-170/+0
| | | | | | | | | | | | | | | | | | | Trove CLI appears to be broken (fresh checkout, devstack as well as openstack gate). All commands fail with ERROR: __init__() got an unexpected keyword argument 'http_log_debug' Correcting the obvious place where this appears to be an issue is causing additional failures and as it is time-critical to get this back up and running, I'm proposing a reversal of the change from 3c47a1855b7ee1345dadfb00ae90a6279b7c424e while that change is completely reworked. I will ping trove core for an approval on this and if I don't get an approval, I'll fast track this reversal. Change-Id: Icac028cfafac57c7e3ef03d4277ae2b7833bf58f Partial-Bug: 1391840
* Adds support for Keystone V3 APIdaniel-a-nguyen2014-11-051-0/+170
Updated trove client to support Keystone V3 API. The Keystoneclient session object is used for authentication, retrieving the service catalog and HTTP connection/session management. Added additional CLI parameters for Keystone V3. Change-Id: I800c252234be2ff11d818cf7513c61c5431eb15c Closes-Bug: 1323866