summaryrefslogtreecommitdiff
path: root/tests/test_swiftclient.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Add --insecure option to fix bug #1077869You Yamagata2012-12-051-0/+29
| | | | | | | If enable this option , swift CLI is allowed to access a keystone server with self signed certificate. Change-Id: I5e219fe875b246b68ac51a077e7ff15e95463adf
* Merge "Remove unused json_request."Jenkins2012-11-161-11/+0
|\
| * Remove unused json_request.Chmouel Boudjnah2012-11-161-11/+0
| | | | | | | | | | | | - This has been long delegated to python-keystoneclient for auth 2.0. Change-Id: I92b1fc2db68192cfeefd623c59882f65a4e4405c
* | Force utf-8 encode of HTTPConnection paramsTihomir Trifonov2012-11-021-0/+56
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | This patch forces swiftclient to encode to utf-8 all url and headers arguments, to avoid the UnicodeDecodeError which is raised by '\r\n'.join([]) invoked in htplib.py. Currently the affected projects are Horizon(upload file with unicode name) and swiftclient CLI('swift post' with unicode filename as header) This is also a follow-up of this review: https://review.openstack.org/#/c/14216/ I'd still want to hear what the Swift core devs think of it. Is it better to create a new AutoEncodingHTTPConnection? Or to handle the connection creation and make sure there are no unicode and utf-8 string at the same time. If these unicode checks have to be added in the calling code(Dashboard, CLI), there are so many places to be added, and also in all new commands that might be exposed from the API. Fixes bug 1008940 Change-Id: Ice2aa29024429d3e6f569a88d5cf8b4202537827
* swiftclient Connection : default optional arguments to NoneSteven Hardy2012-10-241-0/+14
| | | | | | | | Default the authurl/user/key constructor arguments for the Connection class to None, as these are not required in the preauthurl/preauthtoken case Change-Id: I445a5d365212c365ecc691c0a670a226e2b7954a
* Merge "Resolves issue with empty os_options for swift-bench & ↵Jenkins2012-09-211-0/+8
|\ | | | | | | swift-dispersion-report"
| * Resolves issue with empty os_options for swift-bench & swift-dispersion-reportAndy McCrae2012-09-201-0/+8
| | | | | | | | | | | | Fixes Bug 1044204 Change-Id: I5f0863776bc4e2953548bc7a3958141378a032a0
* | Catch authorization failuresDonagh McCabe2012-09-181-0/+9
|/ | | | | | | | Catch the most common authorization exceptions. Fixes bug 1048560 Change-Id: I81c562d6093e94e827e6583dcb31db8408980476
* Add region_name support1.2.0Donagh McCabe2012-09-111-0/+19
| | | | | | | | | Add --os-region-name (and OS_REGION_NAME env) to bin/swift Add region_name to the os_options in Connection class. bug 1019832 Change-Id: Id8515d97e5351638dce10581c7368f61518e1fa7
* Allow endpoint type to be specified.David Kranz2012-09-041-5/+19
| | | | | | Fixes bug 1037690. Change-Id: I36b3807b2f3234c778316f1e743d27304755aed8
* Use keystoneclient for authentication.Chmouel Boudjnah2012-07-061-26/+17
| | | | | | | | | | | | | | | - This allows us to delegate all 2.0 authentication directly to the library without reimplementing ourselves. - Support reusing a token / storage-url without re-authenticating every time via the switch os_storage_url os_auth_token. - Allow auth via tenant_id instead of just tenant_name via the switch os_tenant_id. - Refactor a bit to make it easier in the future to add new OS features (i.e: region). - Implements blueprint use-keystoneclient-for-swiftclient. - Fixes bug 1016641. Change-Id: I532f38a68af884de25326aaac05a2050f5ffa1c7
* Allow specify tenant:user in user.Chmouel Boudjnah2012-06-271-0/+14
| | | | | | | | | | | We allow having the syntax tenant:user in user since this would make things easier when switching from auth 1.0 to auth 2.0 and not having to specify a tenant_name. In the feature we should use the auth functions from keystoneclient and be done with those changes, we could then auth by user/tenant-ID. Change-Id: Ie49748105a678fb9369494e77d41d934d57a39a7
* Raise ClientException for invalid auth version.Dan Prince2012-06-061-0/+6
| | | | | | | | | - Fixes LP Bug #1008667. - Fix a pep8 error along the way to pass jenkins. - Update openstack.swift.common to get jenkins passing for 1.2 pep8 error. Change-Id: I4ce86a94e1c799807a2ad8e7e1c502b1eb8a51c7
* Adding fake_http_connect to test.utils.Chmouel Boudjnah2012-05-211-1/+1
| | | | - Copy fake_http_connect function from swift repository.
* Rename client to swiftclient.Chmouel Boudjnah2012-05-081-0/+520