<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-glanceclient.git/tests/utils.py, branch 0.17.3</title>
<subtitle>opendev.org: openstack/python-glanceclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/'/>
<entry>
<title>Merge "Close streamed requests explicitly"</title>
<updated>2015-02-06T12:16:46+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-02-06T12:16:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=0272106717cfd5b33dc40cc3efa38930ca065cce'/>
<id>0272106717cfd5b33dc40cc3efa38930ca065cce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Close streamed requests explicitly</title>
<updated>2015-01-15T23:20:57+00:00</updated>
<author>
<name>Ian Cordasco</name>
<email>ian.cordasco@rackspace.com</email>
</author>
<published>2015-01-15T22:09:23+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=f2107512ee4be7bfbc1aaefdef12e1cba1147777'/>
<id>f2107512ee4be7bfbc1aaefdef12e1cba1147777</id>
<content type='text'>
If we don't explicitly close a response after streaming its download,
then we can run into HTTPConnectionPool full warnings. It also will hurt
performance if we have to continuously create new sockets for new
responses. Calling close will return the connection to the pool so it
can be reused. Note this is only necessary when streaming a response. If
we don't stream it, then requests will return the connection to the pool
for us.

Change-Id: I803bd4dd0e769c233501d5e5ff07a19705fbe233
Closes-bug: 1341777
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If we don't explicitly close a response after streaming its download,
then we can run into HTTPConnectionPool full warnings. It also will hurt
performance if we have to continuously create new sockets for new
responses. Calling close will return the connection to the pool so it
can be reused. Note this is only necessary when streaming a response. If
we don't stream it, then requests will return the connection to the pool
for us.

Change-Id: I803bd4dd0e769c233501d5e5ff07a19705fbe233
Closes-bug: 1341777
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle HTTP byte returns in python 3</title>
<updated>2015-01-14T02:32:07+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@redhat.com</email>
</author>
<published>2015-01-05T01:46:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=62df6c669f2625582cea9602ed2ec4a4aca2948a'/>
<id>62df6c669f2625582cea9602ed2ec4a4aca2948a</id>
<content type='text'>
The returns from requests' response.content is a bytes type. Under
python 3 this fails in error handling and string conversion. The
response.text variable should be used to treat a response body as a
string.

Closes-Bug: #1407531
Change-Id: Ifd588b5f6820ef21beb186d88d0b3f1a267695aa
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The returns from requests' response.content is a bytes type. Under
python 3 this fails in error handling and string conversion. The
response.text variable should be used to treat a response body as a
string.

Closes-Bug: #1407531
Change-Id: Ifd588b5f6820ef21beb186d88d0b3f1a267695aa
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix py34 failure for glance client</title>
<updated>2014-11-11T02:36:47+00:00</updated>
<author>
<name>Fei Long Wang</name>
<email>flwang@catalyst.net.nz</email>
</author>
<published>2014-11-11T02:29:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=ef0abdc8858cafe0bdbf8f37dac032cbffe85c7a'/>
<id>ef0abdc8858cafe0bdbf8f37dac032cbffe85c7a</id>
<content type='text'>
Fix somes tests failures for py34, most of them are related
to items order of dict.

Closes-Bug: 1382582

Change-Id: I954b884f03931e4f0ecb654fb38edd0c46a3c379
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix somes tests failures for py34, most of them are related
to items order of dict.

Closes-Bug: 1382582

Change-Id: I954b884f03931e4f0ecb654fb38edd0c46a3c379
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix v2 requests to non-bleeding edge servers</title>
<updated>2014-09-12T09:12:49+00:00</updated>
<author>
<name>Lakshmi N Sampath</name>
<email>lakshmi.sampath@hp.com</email>
</author>
<published>2014-09-09T21:51:14+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=97b1506bdbccea9fbfcac731cf8b7e0cadebcbab'/>
<id>97b1506bdbccea9fbfcac731cf8b7e0cadebcbab</id>
<content type='text'>
In the case where v2 requests are sent to a server which is not running
head of tree which includes the v2 metadef code some 404 cases need to
be handled to enable standard requests to complete.

This patch aslo improves fetching schemas -- they are now only
fetched as needed.

Change-Id: I8c871f11b909337bd7df19b77e606772dbc634b2
Closes-bug: #1367326
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In the case where v2 requests are sent to a server which is not running
head of tree which includes the v2 metadef code some 404 cases need to
be handled to enable standard requests to complete.

This patch aslo improves fetching schemas -- they are now only
fetched as needed.

Change-Id: I8c871f11b909337bd7df19b77e606772dbc634b2
Closes-bug: #1367326
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace old httpclient with requests</title>
<updated>2014-07-10T07:52:05+00:00</updated>
<author>
<name>AmalaBasha</name>
<email>amala.alungal@RACKSPACE.COM</email>
</author>
<published>2014-07-01T09:15:12+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=dbb242b776908ca50ed8557ebfe7cfcd879366c8'/>
<id>dbb242b776908ca50ed8557ebfe7cfcd879366c8</id>
<content type='text'>
This review implements blueprint python-request and replaces the old
http client implementation in favor of a new one based on
python-requests.

Major changes:
* raw_request and json_request removed since everything is now being
  handled by the same method "_request"
* New methods that match HTTP's methods were added:
    - get
    - put
    - post
    - head
    - patch
    - delete
* Content-Type is now being "inferred" based on the data being sent:
    - if it is file-like object it chunks the request
    - if it is a python type not instance of basestring then it'll try
      to serialize it to json
    - Every other case will keep the incoming content-type and will send
      the data as is.
* Glanceclient's HTTPSConnection implementation will be used if
  no-compression flag is set to True.

Co-Author:  Flavio Percoco&lt;flaper87@gmail.com&gt;
Change-Id: I09f70eee3e2777f52ce040296015d41649c2586a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This review implements blueprint python-request and replaces the old
http client implementation in favor of a new one based on
python-requests.

Major changes:
* raw_request and json_request removed since everything is now being
  handled by the same method "_request"
* New methods that match HTTP's methods were added:
    - get
    - put
    - post
    - head
    - patch
    - delete
* Content-Type is now being "inferred" based on the data being sent:
    - if it is file-like object it chunks the request
    - if it is a python type not instance of basestring then it'll try
      to serialize it to json
    - Every other case will keep the incoming content-type and will send
      the data as is.
* Glanceclient's HTTPSConnection implementation will be used if
  no-compression flag is set to True.

Co-Author:  Flavio Percoco&lt;flaper87@gmail.com&gt;
Change-Id: I09f70eee3e2777f52ce040296015d41649c2586a
</pre>
</div>
</content>
</entry>
<entry>
<title>Reuse class Manager from common code</title>
<updated>2014-06-12T11:42:46+00:00</updated>
<author>
<name>Andrey Kurilin</name>
<email>akurilin@mirantis.com</email>
</author>
<published>2014-04-16T14:29:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=d54faad0425d95f31913b81dd8c0fbd97605fe4e'/>
<id>d54faad0425d95f31913b81dd8c0fbd97605fe4e</id>
<content type='text'>
Class `Managers` from `glanceclient.common.base` module is similar to
class `apiclient:ManagerWithFind` from common code.

In this patch:
- class glanceclient.common.base:Managers replaced by
apiclient:ManagerWithFind
- module glanceclient.common.base marked as 'deprecated'

Related to bp common-client-library-2

Change-Id: I41da4a9188e97ca2c07b6234fc2ac0a877553d3f
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Class `Managers` from `glanceclient.common.base` module is similar to
class `apiclient:ManagerWithFind` from common code.

In this patch:
- class glanceclient.common.base:Managers replaced by
apiclient:ManagerWithFind
- module glanceclient.common.base marked as 'deprecated'

Related to bp common-client-library-2

Change-Id: I41da4a9188e97ca2c07b6234fc2ac0a877553d3f
</pre>
</div>
</content>
</entry>
<entry>
<title>Add support for image size in v2 api upload</title>
<updated>2014-02-03T11:10:50+00:00</updated>
<author>
<name>Edward Hope-Morley</name>
<email>edward.hope-morley@canonical.com</email>
</author>
<published>2013-09-03T11:27:54+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=4a41358ceaad115f1d3f2ffc640fc1fdc1ce4bb3'/>
<id>4a41358ceaad115f1d3f2ffc640fc1fdc1ce4bb3</id>
<content type='text'>
Some backend stores e.g. RBD, will fail if told to create an
image without a valid size (RBD will fail to write to a zero-size
image). Here we add support to allow the image size to be provided
when doing an upload. The result is that the upload content-length
will be set if available either from checking the supplied file
object or as provided by user.

Closes-Bug: 1220197
Change-Id: Ia1f2ea5680a139750d931591949b3e0058148b4b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some backend stores e.g. RBD, will fail if told to create an
image without a valid size (RBD will fail to write to a zero-size
image). Here we add support to allow the image size to be provided
when doing an upload. The result is that the upload content-length
will be set if available either from checking the supplied file
object or as provided by user.

Closes-Bug: 1220197
Change-Id: Ia1f2ea5680a139750d931591949b3e0058148b4b
</pre>
</div>
</content>
</entry>
<entry>
<title>Python3: use six.StringIO rather than StringIO.StringIO</title>
<updated>2014-01-10T16:25:45+00:00</updated>
<author>
<name>Yassine Lamgarchal</name>
<email>yassine.lamgarchal@enovance.com</email>
</author>
<published>2014-01-10T16:25:25+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=ae579aae093065222b0fb797a80e45fba978f995'/>
<id>ae579aae093065222b0fb797a80e45fba978f995</id>
<content type='text'>
It’s an alias for StringIO.StringIO in Python 2 and
io.StringIO in Python 3.

Change-Id: I5316eaffa2d9d2d5679b85a901933ef0fbfcc2f7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It’s an alias for StringIO.StringIO in Python 2 and
io.StringIO in Python 3.

Change-Id: I5316eaffa2d9d2d5679b85a901933ef0fbfcc2f7
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix extra new line that break from progress bar</title>
<updated>2013-11-20T21:27:00+00:00</updated>
<author>
<name>m.benchchaoui@cloudbau.de</name>
<email>m.benchchaoui@cloudbau.de</email>
</author>
<published>2013-11-20T10:44:40+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-glanceclient.git/commit/?id=2dfbb3f57b2b19888bf2f1114cf4cb8d9488904b'/>
<id>2dfbb3f57b2b19888bf2f1114cf4cb8d9488904b</id>
<content type='text'>
The new line should be writed to stdout only when there is
a progress bar displayed.

Change-Id: If0e62cd5a3734ed67d66d285267c101b7caeea77
Closes-Bug: #1253042
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The new line should be writed to stdout only when there is
a progress bar displayed.

Change-Id: If0e62cd5a3734ed67d66d285267c101b7caeea77
Closes-Bug: #1253042
</pre>
</div>
</content>
</entry>
</feed>
