summaryrefslogtreecommitdiff
path: root/keystoneclient/tests/test_shell.py
Commit message (Collapse)AuthorAgeFilesLines
* Controllable redirect handlingJamie Lennox2014-01-091-0/+1
| | | | | | | | | | The requests library handles redirects as a browser would, which has the problem that forwarding a POST will convert it to a GET. This is not necessarily intuitive for an API. Handle all redirection manually and provide some control over how far redirection can go. Closes-Bug: 1267286 Change-Id: I24596a9c39cc29db28a66c3053ef3954b33abf90
* Fix --debug handling in the shellThomas Herve2013-12-091-0/+10
| | | | | | | | This sets the debug level globally on root logger so that every debug calls are logged. Change-Id: Ia8d61f213b2bc6c4bcb1038e7ff6ac0104581b4b Closes-Bug: #1259210
* use six.StringIO for compatibility with io.StringIO in python3Chuck Short2013-12-051-2/+2
| | | | | | | | | The newer version of six (1.4.1) provides six.StringIO which is a fake file object for textual data. It's an alias for cStringIO.StringIO, in python2 and io.StringIO in Python3. Change-Id: If1ccfca128385f976938f0f0c74573687faad9ac Signed-off-by: Chuck Short <chuck.short@canonical.com>
* Warn user about unsupported API versionTristan Cacqueray2013-12-021-0/+5
| | | | | | | | Prints a warning when the user tries to use an unsupported API. Also provides a test case to check it still does fall back to 2.0. Change-Id: Idabd150f52d27a9d065cf570f6367459126f98be Closes-bug: #1256987
* Extract a base Session objectJamie Lennox2013-11-281-1/+3
| | | | | | | | | | | | A wrapper around a number of connection variables. This will be extended later with principals such as Kerberos authentication and http sessions. The intent is that this session object will become the basis for all other client library communications in OpenStack (as keystone wants to control things like authentication for everybody). Change-Id: I8ee728c49d554659d7057ebf17d0f8ceea4d7d8e Part of: blueprint auth-plugins
* Remove SERVICE_TOKEN and SERVICE_ENDPOINT env varsTom Fifield2013-10-191-2/+2
| | | | | | | | | | | | | | | | | | From the code itself: deprecated command line options for essex compatibility. To be removed in Grizzly release cycle. so this patch removes these deprecated env vars that have been moved into the OS_* namespace since Folsom, and updates the tests that probably should have been using the non-deprecated option anyway :) The fact these are still in there are causing some confusion, we actually had a bug report over in docs claiming OS_SERVICE_TOKEN should be replaced with SERVICE_TOKEN! Change-Id: I205748be225dbacc3a528724cf3722d8bf7f8d9f
* Move tests in keystoneclientJamie Lennox2013-09-241-0/+497
This is the suggested location for tests and is adopted by most projects. As part of this change relative imports to package imports. Fix all the test running and coverage code to point to the new location. Change-Id: I01264aed14f396ab9a7242e3e72b71e1bc332675