<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-swiftclient.git/tests/unit/test_utils.py, branch stable/pike</title>
<subtitle>opendev.org: openstack/python-swiftclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/'/>
<entry>
<title>ISO 8601 timestamps for tempurl</title>
<updated>2017-03-29T18:27:39+00:00</updated>
<author>
<name>Christopher Bartz</name>
<email>bartz@dkrz.de</email>
</author>
<published>2017-01-20T17:04:31+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=8e08931b9ffd872a2b5537149a5d3b9f3e9bb5d4'/>
<id>8e08931b9ffd872a2b5537149a5d3b9f3e9bb5d4</id>
<content type='text'>
Client-side implementation for ISO 8601 timestamp
support of tempurl middleware. Please see

https://review.openstack.org/#/c/422679/

Change-Id: I76da28b48948475ec1bae5258e0b39a316553fb7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Client-side implementation for ISO 8601 timestamp
support of tempurl middleware. Please see

https://review.openstack.org/#/c/422679/

Change-Id: I76da28b48948475ec1bae5258e0b39a316553fb7
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix logging of the gzipped body</title>
<updated>2017-03-07T20:50:55+00:00</updated>
<author>
<name>Vitaly Gridnev</name>
<email>vgridnev@mirantis.com</email>
</author>
<published>2017-03-07T09:38:22+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=028c4824d0190e0b605ae9c90756167083e46cd3'/>
<id>028c4824d0190e0b605ae9c90756167083e46cd3</id>
<content type='text'>
Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9
Closes-bug: 1670620
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I6d7ccbf4ef9b46e890ecec58842c5cdd2804c7a9
Closes-bug: 1670620
</pre>
</div>
</content>
</entry>
<entry>
<title>prefix-based tempurls support</title>
<updated>2017-01-19T15:34:26+00:00</updated>
<author>
<name>Christopher Bartz</name>
<email>bartz@dkrz.de</email>
</author>
<published>2016-12-08T12:42:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=3934bd606acc2333ee9ae63a40baa35928ef908d'/>
<id>3934bd606acc2333ee9ae63a40baa35928ef908d</id>
<content type='text'>
Implements client-side functionality for
prefix-based tempurls.

Please see: https://review.openstack.org/#/c/274048/

Change-Id: I8d7701daee888ed1120271a96c0660b01543ca2d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Implements client-side functionality for
prefix-based tempurls.

Please see: https://review.openstack.org/#/c/274048/

Change-Id: I8d7701daee888ed1120271a96c0660b01543ca2d
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Make tempurl subcommand insist on whole number seconds"</title>
<updated>2016-09-15T02:34:01+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-09-15T02:34:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=0ec6b7b162a7b98ca3fad515de17d8f8a88dda72'/>
<id>0ec6b7b162a7b98ca3fad515de17d8f8a88dda72</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Make tempurl command check for valid object path"</title>
<updated>2016-09-14T20:45:43+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-09-14T20:45:43+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=cacb3a3a1501a930a05b8494d6d1215fe96cf7af'/>
<id>cacb3a3a1501a930a05b8494d6d1215fe96cf7af</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tempurl subcommand insist on whole number seconds</title>
<updated>2016-09-14T17:17:40+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hpe.com</email>
</author>
<published>2016-09-09T10:06:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=e41158d79e4bcb280ec94365226f9423f72d7b66'/>
<id>e41158d79e4bcb280ec94365226f9423f72d7b66</id>
<content type='text'>
Previously the tempurl subcommand would dump a traceback
due to a TypeError if the seconds option was not an int
value. With this patch it will now return the same
error message as if the seconds option were negative or not
a number.

Also changes the error message to state that the seconds
option should be a "whole number" rather than a "positive
integer", since 0 is a valid value.

Change-Id: Ie940d470f2be8006aa8eb7fe242f092457aeae21
Closes-Bug: #1621817
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously the tempurl subcommand would dump a traceback
due to a TypeError if the seconds option was not an int
value. With this patch it will now return the same
error message as if the seconds option were negative or not
a number.

Also changes the error message to state that the seconds
option should be a "whole number" rather than a "positive
integer", since 0 is a valid value.

Change-Id: Ie940d470f2be8006aa8eb7fe242f092457aeae21
Closes-Bug: #1621817
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tempurl command check for valid object path</title>
<updated>2016-09-14T15:24:22+00:00</updated>
<author>
<name>Alistair Coles</name>
<email>alistair.coles@hpe.com</email>
</author>
<published>2016-09-08T13:15:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=4c955751d340a8f71a2eebdb3c58d90b36874a66'/>
<id>4c955751d340a8f71a2eebdb3c58d90b36874a66</id>
<content type='text'>
If the supplied path is not of the form /v1/a/c/o then
swift tempurl subcommand will now return an error message.

Also removes redundant check for seconds parameter being an int
from shell.py because the same check is made when calling
utils.generate_temp_url.

Drive-by fix for missing param definition for generate_temp_url.

Change-Id: I41f4389948b01fadaa5fc4939ea12e0ed2167345
Related-Change: I0fb2ce125fe12d660e4deb778265016bdd5ff31b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the supplied path is not of the form /v1/a/c/o then
swift tempurl subcommand will now return an error message.

Also removes redundant check for seconds parameter being an int
from shell.py because the same check is made when calling
utils.generate_temp_url.

Drive-by fix for missing param definition for generate_temp_url.

Change-Id: I41f4389948b01fadaa5fc4939ea12e0ed2167345
Related-Change: I0fb2ce125fe12d660e4deb778265016bdd5ff31b
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix order of arguments in assertIs</title>
<updated>2016-09-09T09:30:46+00:00</updated>
<author>
<name>Ji-Wei</name>
<email>ji.wei3@zte.com.cn</email>
</author>
<published>2016-09-09T09:30:17+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=5eb0f3debc320340965460c04a1d6ca4f9c423a3'/>
<id>5eb0f3debc320340965460c04a1d6ca4f9c423a3</id>
<content type='text'>
Some tests used incorrect order assertIs(observed, expected).
The correct order expected by testtools is

assertIs(expected, observed, message='')
Assert that expected is observed.
Parameters:
  expected The expected value.
  observed The observed value.
  message An optional message describing the error.
https://docs.python.org/2/library/unittest.html

Change-Id: I5f406336b7804c13ca042dd0c6b30645a711c5f2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some tests used incorrect order assertIs(observed, expected).
The correct order expected by testtools is

assertIs(expected, observed, message='')
Assert that expected is observed.
Parameters:
  expected The expected value.
  observed The observed value.
  message An optional message describing the error.
https://docs.python.org/2/library/unittest.html

Change-Id: I5f406336b7804c13ca042dd0c6b30645a711c5f2
</pre>
</div>
</content>
</entry>
<entry>
<title>Accept gzip-encoded API responses</title>
<updated>2016-08-30T22:38:55+00:00</updated>
<author>
<name>Tim Burke</name>
<email>tim.burke@gmail.com</email>
</author>
<published>2015-05-22T05:44:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=f728027bed59d08a6491ae9c14d2f5968f8d6fa3'/>
<id>f728027bed59d08a6491ae9c14d2f5968f8d6fa3</id>
<content type='text'>
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
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
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
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix unicode issues in tempurl command</title>
<updated>2016-07-19T19:52:51+00:00</updated>
<author>
<name>Tim Burke</name>
<email>tim.burke@gmail.com</email>
</author>
<published>2016-06-29T18:07:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-swiftclient.git/commit/?id=dca4ea5fd6e1a4eb15eeea9879913f64f2851446'/>
<id>dca4ea5fd6e1a4eb15eeea9879913f64f2851446</id>
<content type='text'>
Previously, we weren't encoding paths and keys as UTF-8, which would
trigger a UnicodeEncodeError on py27.

Change-Id: I2fad428369406c2ae32343a5e943ffb2cd1ca6ef
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, we weren't encoding paths and keys as UTF-8, which would
trigger a UnicodeEncodeError on py27.

Change-Id: I2fad428369406c2ae32343a5e943ffb2cd1ca6ef
</pre>
</div>
</content>
</entry>
</feed>
