summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix --insecure option on auth2.0.1John Dickinson2014-02-133-10/+33
| | | | Change-Id: Ibe76d98d6075b84cbdb370b48f3498ab848142ad
* Merge "Port to python-requests"2.0Jenkins2014-02-148-339/+150
|\
| * Port to python-requestsTristan Cacqueray2014-02-128-339/+150
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, httplib implementation does not support SSL certificate verification. This patch fixes this. Note that ssl compression parameter and 100-continue thing is still missing from requests, though those are lower priority. Requests now takes care of: * proxy configuration (get_environ_proxies), * chunked encoding (with data generator), * bulk uploading (with files dictionary), * SSL certificate verification (with 'insecure' and 'cacert' parameter). This patch have been tested with requests 1.1.0 (CentOS 6) and requests 2.2.1 (current version). Change-Id: Ib5de962f4102d57c71ad85fd81a615362ef175dc Closes-Bug: #1199783 DocImpact SecurityImpact
* | Merge "Remove extraneous vim configuration comments"1.9.0Jenkins2014-02-131-2/+0
|\ \
| * | Remove extraneous vim configuration commentsyangxurong2014-02-131-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Remove line containing comment - # vim: tabstop=4 shiftwidth=4 softtabstop=4 Change-Id: I31e4ee4112285f0daa5f2dd50db0344f4876820d Closes-Bug:#1229324
* | | Rename Openstack to OpenStacktanlin2014-02-131-9/+9
|/ / | | | | | | Change-Id: I091b1d2de41ff59b21ce136738e2f69b759d682b
* | Merge "Fix swiftclient help"Jenkins2014-02-101-16/+20
|\ \
| * | Fix swiftclient helpChristian Schwede2014-02-071-16/+20
| | | | | | | | | | | | | | | | | | | | | | | | Command help was wrong in some cases. While we're at it, add some defaults to help and change some brackets to be consistent with http://en.wikipedia.org/wiki/Command-line_interface#Command_description_syntax Change-Id: I5d7b2a703294d97fc5e3de43b9ec375c3ea55a6e
* | | Remove tox locale overridesJeremy Stanley2014-02-101-3/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tox.ini: The LANG, LANGUAGE and LC_ALL environment overrides were introduced originally during the testr migration in an attempt to be conservative about the possibility that locale settings in the calling environment could cause consistency problems for test runs. In actuality, this should be unnecessary and any place where it does cause issues ought to be considered an actual bug. Also, having these in the configuration actively causes older pip to have problems with non-ASCII content in some package metadata files under Python 3, so drop it now. Change-Id: If4e025e22248d06b77e9d4d8f4e4815776428b9d Closes-Bug: #1277495
* | Fix misspellings in python swiftclientShane Wang2014-02-071-1/+1
| | | | | | | | | | | | | | | | | | Fix misspellings detected by: * pip install misspellings * git ls-files | grep -v locale | misspellings -f - Change-Id: I2fb042b3d9eb59cd404c52c775e5cc870e6157e1 Closes-Bug: #1257295
* | changed things because reasonsSergio Cazzolato2014-02-061-2/+5
|/ | | | | | | Dictionaries added in texts to improve readability in case there are 2 params Change-Id: I064cceeaa56b232504c6f0b6c215c9c5dbb7fcef
* Merge "Install manpage in share/man/man1 instead of man/man1"Jenkins2014-01-311-1/+1
|\
| * Install manpage in share/man/man1 instead of man/man1Christian Schwede2014-01-201-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | According to FHS 2.3 the correct place to install the manpage for a binary in /usr/local/bin/ would be /usr/local/man/. However, on Debian/Ubuntu-based systems /usr/local/man/ is a link to /usr/local/share/man/ and on other systems /usr/local/man/ might not exist at all. Even worse, if the client is installed in /usr/bin/ the manpage should should be installed in /usr/share/man, but will be installed in /usr/man/ which is completely wrong. This patch fixes this and uses share/man/man1 as common prefix. Doing this will install the manpage either in /usr/local/share/man/man1 or /usr/share/man/man1. Partial-Bug: 1269715 Change-Id: I590932f00476eacd434cdae012fd62010845581d
* | Merge "assertEquals is deprecated, use assertEqual"Jenkins2014-01-311-41/+41
|\ \
| * | assertEquals is deprecated, use assertEqualDirk Mueller2014-01-171-41/+41
| | | | | | | | | | | | Change-Id: I226d9046d25d681beea60d38b029b71f9e6bf86c
* | | Merge "Updated from global requirements"OpenStack Jenkins2014-01-311-2/+2
|\ \ \
| * | | Updated from global requirementsOpenStack Jenkins2014-01-241-2/+2
| | |/ | |/| | | | | | | Change-Id: Icebd5bed50a50930bde0305191e32628d93348c0
* | | Merge "Add capabilities option"Jenkins2014-01-314-3/+110
|\ \ \
| * | | Add capabilities optionFabien Boucher2014-01-174-3/+110
| | |/ | |/| | | | | | | | | | | | | | | | | | | This patch adds a capabilities option on swiftclient. This option uses the new /info endpoint to request the remote capabilities and nicely display it. Change-Id: Ie34b454511d5527e402e66e1fdb72120f427f2fd
* | | match hacking rules in swiftJohn Dickinson2014-01-242-0/+20
| |/ |/| | | | | Change-Id: Iee02978f38ca020754f52ceaed6aa3684fa87bc9
* | Merge "retry on ratelimit"Jenkins2014-01-182-1/+27
|\ \
| * | retry on ratelimitJohn Dickinson2013-12-232-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | Added a retry_on_ratelimit parameter to the Connection class so that ratelimited requests can be retried. DocImpact Change-Id: I2817a7ea0ed2d69a7659e80111fbd2c91a75d530
* | | Merge "Replace xrange in for loop with range"Jenkins2014-01-182-11/+13
|\ \ \
| * | | Replace xrange in for loop with rangeWu Wenxiang2014-01-142-11/+13
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | xrange is not supported in python 3, so replace it with range since no large size lists involved. Closes-Bug: #1237717 Change-Id: I4e5e0782153d32c8beee03f7d871722ed4352859
* | | Install swiftclient manpageChristian Schwede2014-01-161-0/+2
|/ / | | | | | | | | | | | | | | Currently the existing manpage isn't copied to /usr/local/man/man1 when installing swiftclient from source. This patch fixes this. Change-Id: Ib2ee091d5e1d4c37a4e5a00f50fa19df44bd3c41 Partial-Bug: 1269715
* | Merge "Add --object-name"Jenkins2013-12-252-12/+38
|\ \
| * | Add --object-nameTaurus Cheung2013-12-242-12/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | Add parameter --object-name, which: 1) Sets target object name when upload single file 2) Sets object prefix when upload a directory Change-Id: Idc4357c3355e66d31c100540b901e70db20b03c3 Closes-Bug: 1012979
* | | Merge "Fix help of some optional arguments"Jenkins2013-12-211-4/+4
|\ \ \ | |_|/ |/| |
| * | Fix help of some optional argumentsSahid Orentino Ferdjaoui2013-12-181-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some positional arguments are optional but the help indicate they are mendatory and can be confuse for an user. swift delete <container> [object] swift post <container> [object] Change-Id: I7be525905b51d3ef160b0f47194e817b5cba0f9b
* | | Merge "Updates tox.ini to use new features"Jenkins2013-12-161-0/+3
|\ \ \
| * | | Updates tox.ini to use new featuresSushil Kumar2013-12-121-0/+3
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tox 1.6 allows us to skip the sdist step, which is slow. This does that. It also allows us to override the install line. In this case, it's important as it allows us to stop getting pre-release software we were not asking for. Original patch by Monty Taylor, talked about here: http://lists.openstack.org/pipermail/openstack-dev/2013-September/015495.html Change-Id: Id751f7d5d40a80d348a5f5936539d9462b40b14b
* | | Merge "Enable usage of proxies defined in environment (http(s)_proxy)."Jenkins2013-12-143-2/+138
|\ \ \ | |/ / |/| |
| * | Enable usage of proxies defined in environment (http(s)_proxy).Davide Guerri2013-12-103-2/+138
| | | | | | | | | | | | | | | | | | | | | | | | | | | As far as proxies usage is concerned, keystone-client API and swift-client API behave differently because the former uses python Request library while the latter uses raw httplib. As a result, Keystone authentication honors environment variables http_proxy, https_proxy and no_proxy while Swift doesn't. This patch, which code is mainly borrowed from Python Requests, makes Swift data connections and Swift authentication connections behaving homogeneously. Change-Id: Ic8a0089c35c458d7ed96e572e22429014298fe4c
* | | Merge "Fixes python-swiftclient debugging message"Jenkins2013-12-121-1/+2
|\ \ \
| * | | Fixes python-swiftclient debugging messageFlorent Flament2013-10-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Appends the container's name to the URL displayed, to be used to replay the queries with curl. Replaying the curl commands displayed by "swift --debug list <container>" now works properly. Example: $ swift --debug list test-container ... DEBUG:swiftclient:REQ: curl -i http://10.0.48.134:8080/v1/AUTH_6c554b8dd3d74e44878eddb92caf8687/test-container?format=json -X GET -H ... ... Change-Id: I7ec33d185fedc44a529c016d38f841fde39d20d0 Closes-Bug: #1238612
* | | | Fix Sphinx version issueJohn Dickinson2013-12-112-1/+2
| | | | | | | | | | | | | | | | Change-Id: Ib72ebf210486972538f5d2ef7eb225d57f84eeac
* | | | Merge "Skip sniffing and reseting if retry is disabled"Jenkins2013-12-101-9/+8
|\ \ \ \
| * | | | Skip sniffing and reseting if retry is disabledYuan Zhou2013-09-291-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bypass sniffing entirely if retries has been disabled. Fix bug #1216981 Change-Id: I593bdc56ca139af5a7f2ca2783ef2de2a96c94fb Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
* | | | | Merge "Don't crash when header is value of None"Jenkins2013-12-072-1/+8
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Don't crash when header is value of NoneChmouel Boudjnah2013-12-062-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before commit 7d88d14d (http://git.io/hhJWdQ) swifclient used to accept header value with the type None : {'Headers': None} It would just be happy with it with those None headers and not process them, reinstate the old behavior. Closes-Bug: 1256441 Change-Id: Ic7f80c38ef2ce9ef1687ed0d6d65521f2e754905
* | | | | Merge "Fix download bandwidth for swift command."Jenkins2013-12-032-8/+16
|\ \ \ \ \
| * | | | | Fix download bandwidth for swift command.jola-mirecka2013-11-282-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We noticed a difference in download bandwidth while using authentication details and pre-auth information for download. Download using authentication details included authentication time into the download bandwidth at each call of the function. This time should have been excluded from download bandwidth. This patch set is adding a timer variable to the client library. That allows to accurately measure and store the time of each action. Then while printing the download bandwith in the swift command authentication time is excluded from bandwidth. Change-Id: I63df9023e169f637f120ae9e25dac9c90a4e75a0 Fixes: bug #1197443
* | | | | | Merge "Add close to swiftclient.client.Connection"Jenkins2013-11-293-2/+47
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Add close to swiftclient.client.ConnectionFeng Liu2013-10-233-2/+47
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I2f5fa9c46886607a9ba99e8915ea84ac4975d004
* | | | | | Updates .gitignoreZhenguo Niu2013-11-281-1/+1
| |/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To ignore swap files from getting into repository currently the implemented ignore is *.swp however vim adds more swap files if these files exists, so improving this with *.sw? Change-Id: I48846345de6838735d2d2e46328698f6a526f397 Closes-Bug: #1255876
* | | | | Merge "Allow custom headers when using swift download (CLI)"Jenkins2013-11-272-1/+17
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | Allow custom headers when using swift download (CLI)Matthieu Huin2013-11-042-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes bug #1051046 A repeatable option, --header or -H, is added so a user can specify custom headers such as Range or If-Modified-Since when downloading an object with the swift CLI. Change-Id: I1f7dcf64cf625f2e5a4488c210894cfe6e0d5974
* | | | | Merge "Add verbose output to all stat commands"Jenkins2013-11-217-140/+463
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Add verbose output to all stat commandsClay Gerrard2013-10-097-140/+463
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When you stat a container or object with the verbose flag the full path of the reousrce will be displayed with the token similarlly to how an account stat displays the auth url and token. * move some logic out of bin/swift.st_stat to test it * new module swiftclient.commnad_helpers for code you want to test * moved prt_bytes into swiftclient.utils to test it * fixed IndexError with prt_bytes on sizes >= 1024Y Change-Id: Iaaa96e0308b08c554205b0055b8a04de581fefa4
* | | | | Replaced two references to Cloud Files with SwiftAlex Gaynor2013-11-012-2/+2
| | | | | | | | | | | | | | | | | | | | Change-Id: I721f2b25a255a829c625b34928b066df3cd3e632