summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Installs futures only for python 2.7 and 2.6newton-eolstable/newtonClaudiu Belu2016-12-291-1/+1
| | | | | | | | | | | | | | | | The futures library is native to python 3 and it doesn't have to be installed from pypi. If the futures library is installed, it can cause issues when used. Changes the futures' library requirement to match the one in global requirements. [1] [1] https://github.com/openstack/requirements/blob/master/global-requirements.txt Change-Id: I8f13d63a303b71f7bdd8c3e67c15d0a0df5ea7a9 Closes-Bug: #1628107 (cherry picked from commit b3921b2)
* Update .gitreview for stable/newtonDoug Hellmann2016-09-021-0/+1
| | | | Change-Id: Iaab630fbd7a87da588381ce4593c12b94a8ab394
* authors/changelog updates for 3.1.0 release3.1.0John Dickinson2016-09-014-1/+105
| | | | Change-Id: I75ba58d194ea99b17c862cefcd9943e38e3f1ff0
* Merge "Accept gzip-encoded API responses"Jenkins2016-09-014-6/+65
|\
| * Accept gzip-encoded API responsesTim Burke2016-08-304-6/+65
| | | | | | | | | | | | | | | | | | | | | | Previously, we would accept gzip-encoded responses, but only because we were letting requests decode *all* responses (even object data). This restores the previous capability, but with tighter controls about which requests will accept gzipped responses and where the decoding happens. Change-Id: I4fd8b97207b9ab01b1bcf825cc16efd8ad46344a Related-Bug: 1282861 Related-Bug: 1338464
* | Merge "Convert numeric and boolean header values to strings"Jenkins2016-08-313-4/+21
|\ \
| * | Convert numeric and boolean header values to stringsTim Burke2016-08-253-4/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Recently, requests got a bit more picky about what types of data it will accept as header values [1]. The reasons for this are generally sound; str()ing arbitrary objects just before pushing them out a socket may not do what the developer wanted/expected. However, there are a few standard types that developers may be sending that we should convert for them as a convenience. Now, we'll convert all int, float, and bool values to strings before sending them on to requests. Change-Id: I6c2f451009cb03cb78812f54e4ed8566076de821 Closes-Bug: 1614932
* | | Merge "Add swift tempurl and swift auth command docstring"Jenkins2016-08-301-0/+43
|\ \ \ | |_|/ |/| |
| * | Add swift tempurl and swift auth command docstringzheng yin2016-08-301-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | Swift has commands including 'swift tempurl' and 'swift auth', but it has no 'swift tempurl' and 'swift auth' in doc/source/cli.rst. Therefore, I add them and their examples. Change-Id: I9a935b648556e2718727d25ac553c860ebbadd82
* | | Merge "client: renew token on 401 even if retries is 0"Jenkins2016-08-262-4/+82
|\ \ \
| * | | client: renew token on 401 even if retries is 0Julien Danjou2016-06-072-4/+82
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Gnocchi uses a client with retries=0 to maximize throughtput and not retry N times on e.g. 404 when checking existence of an object. However, this as the side effect of never renewing the token since there' no retry on 401 either. This patches change the behavior so that 401 errors are always retried, whatever the retries value is. Closes-Bug: #1589926 Change-Id: Ie06adf4cf17ea4592b5bbd7bbde9828e5e134e3e
* | | | Merge "boolean logic cleanup in service.Swift[Copy|Post]Object"Jenkins2016-08-251-5/+4
|\ \ \ \
| * | | | boolean logic cleanup in service.Swift[Copy|Post]ObjectClay Gerrard2016-08-251-5/+4
| | |_|/ | |/| | | | | | | | | | Change-Id: I07e74536502ec2479b22a825f684703d65924563
* | | | Merge "Use mock patch to handle get_auth_keystone"Jenkins2016-08-251-133/+144
|\ \ \ \
| * | | | Use mock patch to handle get_auth_keystoneJamie Lennox2016-08-251-133/+144
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Setting c.get_auth_keystone = fake_get_auth_keystone is setting a new method on the module. This information is not reset between test runs and therefore has the potential to corrupt other tests. Use mock patch so that the mock is reset after the test is complete. Change-Id: Ifb9ba72634cf477c72dda080b5aed8f8e3a7ac89
* | | | Merge "Fix examples and missing code-block"Jenkins2016-08-252-1/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Fix examples and missing code-blockJoel Wright2016-08-252-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch fixes a missing code-block section in the capabilities section of service-api.rst, and fixes the import of walk in the upload.py examples to support both python2 and python3. Change-Id: I572769f971f84e0029f2948e42c130e73517f434
* | | | Merge "Strip leading/trailing whitespace from headers"Jenkins2016-08-252-2/+2
|\ \ \ \ | |_|_|/ |/| | |
| * | | Strip leading/trailing whitespace from headersTim Burke2016-08-192-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New versions of requests will raise an InvalidHeader error otherwise. Change-Id: Idf3bcd8ac359bdda9a847bf99a78988943374134 Closes-Bug: #1614280 Closes-Bug: #1613814
* | | | Merge "Add copy object method"Jenkins2016-08-2411-6/+914
|\ \ \ \ | |/ / / |/| | |
| * | | Add copy object methodMarek Kaleta2016-08-2311-6/+914
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement copy object method in swiftclient Connection, Service and CLI. Although COPY functionality can be accomplished with 'X-Copy-From' header in PUT request, using copy is more convenient especially when using copy for updating object metadata non-destructively. Closes-Bug: 1474939 Change-Id: I1338ac411f418f4adb3d06753d044a484a7f32a4
* | | | Move other-requirements.txt to bindep.txtAndreas Jaeger2016-08-121-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The default filename for documenting binary dependencies has been changed from "other-requirements.txt" to "bindep.txt" with the release of bindep 2.1.0. While the previous name is still supported, it will be deprecated. Move the file around to follow this change. Note that this change is self-testing, the OpenStack CI infrastructure will use a "bindep.txt" file to setup nodes for testing. For more information about bindep, see also: http://docs.openstack.org/infra/manual/drivers.html#package-requirements http://docs.openstack.org/infra/bindep/ As well as this announcement: http://lists.openstack.org/pipermail/openstack-dev/2016-August/101590.html Change-Id: I384cdb39c1f65218bb5c6f76afc381c1799b623e
* | | | reenable sidebar linksJohn Dickinson2016-08-111-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | uses new method from https://review.openstack.org/#/c/340509/ Change-Id: I4d19b71b632546fc2e5d5dac2b0d8d43152dabed
* | | | Merge "Fix unicode issues in tempurl command"Jenkins2016-08-072-50/+137
|\ \ \ \
| * | | | Fix unicode issues in tempurl commandTim Burke2016-07-192-50/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we weren't encoding paths and keys as UTF-8, which would trigger a UnicodeEncodeError on py27. Change-Id: I2fad428369406c2ae32343a5e943ffb2cd1ca6ef
* | | | | Merge "Add --json option to `swift capabilities` / `swift info`"Jenkins2016-08-063-20/+55
|\ \ \ \ \
| * | | | | Add --json option to `swift capabilities` / `swift info`Tim Burke2016-08-023-20/+55
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets us do things like: $ swift info --json | jq '[.swift.policies[].name]' [ "Standard-Replica", "EC" ] Also, escape more dashes in the man page, so they won't be misinterpreted as hyphens. Change-Id: Ic7690bdbcfc55f55e5dde9bc11bb0644085973ce
* | | | | | Modify assertzheng yin2016-07-261-25/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example: self.assertEqual(a,None) is equal to self.assertIsNone(a) Change-Id: I063145d034979cf3d36645a00a30cc27defac7c4
* | | | | | Merge "Add other-requirements.txt"Jenkins2016-07-131-0/+5
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add other-requirements.txtTim Burke2016-07-051-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6f273d41fc32bcb86f1b272d0a9000dbdaf5ce66
* | | | | | fixing nit picks in python-swiftclient docShashirekha Gundur2016-07-073-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Ifde19be175ea828a3137951a0382492434727b5b
* | | | | | Merge "Add python version constraint python>=2.7"Jenkins2016-07-071-1/+5
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add python version constraint python>=2.7Cheng Li2016-07-061-1/+5
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The 'swift' command from v3.0.0 does not work in Python 2.6, bacause some code is incompatible with Python 2.6 This patch is to add a constraint of python version Change-Id: I5197cba0c2cd3135d08498df827a52f8bba98d4d Closes-bug: #1590334
* | | | | Add __ne__ built-in functionyuyafei2016-07-051-0/+3
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python 3 __ne__ by default delegates to __eq__ and inverts the result, but in Python 2 they urge you to define __ne__ when you define __eq__ for it to work properly [1].There are no implied relationships among the comparison operators. The truth of x==y does not imply that x!=y is false. Accordingly, when defining __eq__(), one should also define __ne__() so that the operators will behave as expected. [1]https://docs.python.org/2/reference/datamodel.html#object.__ne__ Change-Id: I5485022f010cdcb88c0d4ebe5c44a39a1bf242b0
* | | | Merge "Query string functionality for containers"Jenkins2016-06-143-10/+57
|\ \ \ \ | |_|_|/ |/| | |
| * | | Query string functionality for containersAndrew Welleck2016-06-093-10/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added functionality for arbitrary query strings to be passed into container functions. Additionally a minor typo correction in the README. Added unit tests for query string functionality. Closes-Bug: #1542459 Change-Id: Ica2cb3ea439632588388e748d8d2e944e9ed4fa4
* | | | Merge "Add an option: disable etag check on downloads"Jenkins2016-06-067-5/+43
|\ \ \ \ | |_|_|/ |/| | |
| * | | Add an option: disable etag check on downloadsCheng Li2016-06-027-5/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch is to add an option of disable etag check on downloads. Change-Id: I9ad389dd691942dea6db470ca3f0543eb6e9703e Closes-bug: #1581147
* | | | Merge "Suppress InsecureRequestWarning when using --insecure"Jenkins2016-06-042-10/+23
|\ \ \ \ | |_|_|/ |/| | |
| * | | Suppress InsecureRequestWarning when using --insecureTim Burke2016-06-012-10/+23
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | The user already knows this is insecure, there's no point in bringing it up again and again. See also: https://github.com/kennethreitz/requests/issues/2214 Change-Id: I7991b2e568407269f84138bc03711147ed080c9c
* | | Merge "Fixed a typo in SwiftService API doc"Jenkins2016-06-011-1/+1
|\ \ \
| * | | Fixed a typo in SwiftService API docNandini Tata2016-06-011-1/+1
| |/ / | | | | | | | | | | | | | | | Fixed misspelled word in the Service API description. Change-Id: I0bb6b2aa319ba217dd0d09a2c7a0d8eff9a67aff
* | | Merge "Migrated contributing file from .md to .rst"Jenkins2016-06-012-12/+18
|\ \ \ | |/ / |/| |
| * | Migrated contributing file from .md to .rstvenkatamahesh2016-05-162-12/+18
| | | | | | | | | | | | Change-Id: I80cbbced26906ac6ba9ae3faaba3a400e365be0d
* | | Merge "Support client certificate/key"Jenkins2016-05-196-6/+98
|\ \ \
| * | | Support client certificate/keyCedric Brandily2016-04-106-6/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change enables to specify a client certificate/key with: * usual CLI options (--os-cert/--os-key) * usual environment variables ($OS_CERT/$OS_KEY) Closes-Bug: #1565112 Change-Id: I12e151adcb6084d801c6dfed21d82232a3259aea
* | | | Merge "Use application/directory content-type for dir markers"Jenkins2016-05-192-6/+145
|\ \ \ \
| * | | | Use application/directory content-type for dir markersTim Burke2016-04-082-6/+145
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, we were using a content-type of text/directory, but that is already defined in RFC 2425 and doesn't reflect our usage: The text/directory Content-Type is defined for holding a variety of directory information, for example, name, or email address, or logo. (From there it goes on to describe a superset of the vCard format defined in RFC 2426.) application/directory, on the other hand, is used by Static Web [1] and is used by cloudfuse [2]. Seems like as sane a choice as any to standardize on. [1] https://github.com/openstack/swift/blob/2.5.0/swift/common/middleware/staticweb.py#L71-L75 [2] https://github.com/redbo/cloudfuse/blob/1.0/README#L105-L106 Change-Id: I19e30484270886292d83f50e7ee997b6e1623ec7
* | | | Merge "Correct doc string for http_conn argument"Jenkins2016-05-181-27/+27
|\ \ \ \
| * | | | Correct doc string for http_conn argumentKota Tsuyuzaki2016-05-121-27/+27
| | |_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Previous doc string describes "http_conn" for a bunch of functions as "HTTPConnection object" but it is actually "a tuple of (parsed_url, HTTPConnection object)" so now this patch correct the mis-consistency. Change-Id: I6ff90a941e6df6a1b3b5dc74fd5f4262654c9f0a