<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-glanceclient.git/glanceclient/tests/unit/test_http.py, branch 2.3.0</title>
<subtitle>opendev.org: openstack/python-glanceclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/'/>
<entry>
<title>py3: Fix encoding and use sys.stdin.buffer</title>
<updated>2016-07-25T14:43:08+00:00</updated>
<author>
<name>Sirushti Murugesan</name>
<email>sirushti.murugesan@hp.com</email>
</author>
<published>2016-06-23T13:38:51+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=376037d3716244c32acf7fd4c096c99a8fa1b4c7'/>
<id>376037d3716244c32acf7fd4c096c99a8fa1b4c7</id>
<content type='text'>
* exc.py: Encode body in response before calling replace over it.
* http.py: prepend the bytes literal to the empty string or else
  we hit bug 1342080 again in python 3.
* utils.py: Use sys.stdin.buffer in python 3.

Change-Id: Ieefb8c633658e507486438e5518c5d53e819027d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* exc.py: Encode body in response before calling replace over it.
* http.py: prepend the bytes literal to the empty string or else
  we hit bug 1342080 again in python 3.
* utils.py: Use sys.stdin.buffer in python 3.

Change-Id: Ieefb8c633658e507486438e5518c5d53e819027d
</pre>
</div>
</content>
</entry>
<entry>
<title>Use correct order of arguments to assertEqual</title>
<updated>2016-06-29T03:46:30+00:00</updated>
<author>
<name>zhengyao1</name>
<email>zheng.yao1@zte.com.cn</email>
</author>
<published>2016-06-15T08:42:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=c3de38ed530b8db77185e819af65574e35ebe134'/>
<id>c3de38ed530b8db77185e819af65574e35ebe134</id>
<content type='text'>
The correct order of arguments to assertEqual that is expected by
testtools is (expected, observed).

This patch fixes the inverted usage of arguments in some places
that have cropped up since the last fix of this bug.

Change-Id: If8c0dcb58496bc2fcf4c635f384522a1f7d2b2af
Closes-Bug: #1259292
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The correct order of arguments to assertEqual that is expected by
testtools is (expected, observed).

This patch fixes the inverted usage of arguments in some places
that have cropped up since the last fix of this bug.

Change-Id: If8c0dcb58496bc2fcf4c635f384522a1f7d2b2af
Closes-Bug: #1259292
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fix "Codec can't encode characters""</title>
<updated>2016-05-23T14:31:04+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-05-23T14:31:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=6f2fae7a19dc98286cd44519b5a0d9ed566610cc'/>
<id>6f2fae7a19dc98286cd44519b5a0d9ed566610cc</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix "Codec can't encode characters"</title>
<updated>2016-05-19T16:48:03+00:00</updated>
<author>
<name>Darja Shakhray</name>
<email>dshakhray@mirantis.com</email>
</author>
<published>2016-05-13T12:03:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=9329ef0bc40375cd9b115415e10baf89789f56f0'/>
<id>9329ef0bc40375cd9b115415e10baf89789f56f0</id>
<content type='text'>
Headers were encoded in HTTPClient, but when glance client started
to use SessionClient this functionality was lost.

This commit replaces static method "encode_headers" from HTTPClient
and makes it a common function, that SessionClient can use when
converting image meta to headers.


Change-Id: If9f8020220d2a0431b4241b38b9c83c09c0d75cb
Closes-bug: #1574587
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Headers were encoded in HTTPClient, but when glance client started
to use SessionClient this functionality was lost.

This commit replaces static method "encode_headers" from HTTPClient
and makes it a common function, that SessionClient can use when
converting image meta to headers.


Change-Id: If9f8020220d2a0431b4241b38b9c83c09c0d75cb
Closes-bug: #1574587
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Add last_request_id member to HTTPClient and SessionClient"</title>
<updated>2016-05-18T21:44:53+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-05-18T21:44:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=7150ceee1ac72361f75b3a4187e10a884166870d'/>
<id>7150ceee1ac72361f75b3a4187e10a884166870d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Enable hacking checks"</title>
<updated>2016-04-20T17:13:16+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-04-20T17:13:16+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=9ffebbb25ed50d5abc12c56226b28ddedb11d278'/>
<id>9ffebbb25ed50d5abc12c56226b28ddedb11d278</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Enable hacking checks</title>
<updated>2016-04-18T16:23:59+00:00</updated>
<author>
<name>Tin Lam</name>
<email>tl3438@att.com</email>
</author>
<published>2016-03-25T08:07:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=cd5925bc60a5298ecc7182bf058a1b3a5bec30cf'/>
<id>cd5925bc60a5298ecc7182bf058a1b3a5bec30cf</id>
<content type='text'>
Enabled following hacking checks from tox.ini:
- H233 Python 3.x incompatible use of print operator
- H303 no wildcard import
- H404 multi line docstring should start with a summary

Change-Id: I2553bcd3e80c00acc08d135a1d2dadfb6cda49fe
Partial-Bugs: #1475054
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Enabled following hacking checks from tox.ini:
- H233 Python 3.x incompatible use of print operator
- H303 no wildcard import
- H404 multi line docstring should start with a summary

Change-Id: I2553bcd3e80c00acc08d135a1d2dadfb6cda49fe
Partial-Bugs: #1475054
</pre>
</div>
</content>
</entry>
<entry>
<title>Add last_request_id member to HTTPClient and SessionClient</title>
<updated>2016-03-30T13:56:27+00:00</updated>
<author>
<name>Cao ShuFeng</name>
<email>caosf.fnst@cn.fujitsu.com</email>
</author>
<published>2016-03-03T07:19:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=9e532db8b0f0ba537edef143a6f5380a2aaa1e4b'/>
<id>9e532db8b0f0ba537edef143a6f5380a2aaa1e4b</id>
<content type='text'>
apiclient.base.Resource.get method requires manager.client to have
last_request_id member. Otherwise get operation fails with
AttributeError exception.

Change-Id: I0ece85e3f61f2a7f176520ddf3ebee7792e51993
Closes-bug: 1552533
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
apiclient.base.Resource.get method requires manager.client to have
last_request_id member. Otherwise get operation fails with
AttributeError exception.

Change-Id: I0ece85e3f61f2a7f176520ddf3ebee7792e51993
Closes-bug: 1552533
</pre>
</div>
</content>
</entry>
<entry>
<title>Update auth_token before sending request</title>
<updated>2016-03-30T10:33:19+00:00</updated>
<author>
<name>kairat_kushaev</name>
<email>kkushaev@mirantis.com</email>
</author>
<published>2016-03-30T05:49:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=2561e4061c375982fd056af583233c4c658b139e'/>
<id>2561e4061c375982fd056af583233c4c658b139e</id>
<content type='text'>
Previously auth_token was initialized once in __init__ method.
After that we stored token in session headers. So to refresh token
users need to instantiate a new session inside http client or
re-create client itself.
In order to provide possibility to refresh token we need
to add token header before sending the request. So users can
just update auth_token attribute in the HTTPClient to refresh
user token.

Change-Id: Ifebe9011870bbddc46fc6d6a26563641d5559e97
Closes-Bug: #1563495
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously auth_token was initialized once in __init__ method.
After that we stored token in session headers. So to refresh token
users need to instantiate a new session inside http client or
re-create client itself.
In order to provide possibility to refresh token we need
to add token header before sending the request. So users can
just update auth_token attribute in the HTTPClient to refresh
user token.

Change-Id: Ifebe9011870bbddc46fc6d6a26563641d5559e97
Closes-Bug: #1563495
</pre>
</div>
</content>
</entry>
<entry>
<title>Change assertTrue(isinstance()) by optimal assert</title>
<updated>2016-01-06T17:07:41+00:00</updated>
<author>
<name>LiuNanke</name>
<email>nanke.liu@easystack.cn</email>
</author>
<published>2016-01-06T16:23:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=c7fc0d6b1d7d2691d28a7d5f6b8dc5dab7204368'/>
<id>c7fc0d6b1d7d2691d28a7d5f6b8dc5dab7204368</id>
<content type='text'>
assertTrue(isinstance(A, B)) or assertEqual(type(A), B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.


Change-Id: I7135d3b7fe15b16c17b7581e553ce5d289b58f43
Related-bug: #1268480
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
assertTrue(isinstance(A, B)) or assertEqual(type(A), B) in tests
should be replaced by assertIsInstance(A, B) provided by testtools.


Change-Id: I7135d3b7fe15b16c17b7581e553ce5d289b58f43
Related-bug: #1268480
</pre>
</div>
</content>
</entry>
</feed>
