<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-glanceclient.git/glanceclient/tests/unit/test_utils.py, branch 2.15.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>Image show: print human readable string when the virtual size is unknown</title>
<updated>2018-05-31T16:52:20+00:00</updated>
<author>
<name>Cyril Roelandt</name>
<email>cyril@redhat.com</email>
</author>
<published>2018-05-03T13:54:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=abfe0f4bf3295a4bc807b7e4e6b46a16061b29de'/>
<id>abfe0f4bf3295a4bc807b7e4e6b46a16061b29de</id>
<content type='text'>
Currently, when the virtual size of an image is not known, "None" is displayed.
To a regular user, it feels like a programming error. We try and make things
clearer by using a "human readable" string instead.

Change-Id: Id7b8799356857d9bc58cc8a3677024fe1a7f4f56
Partial-Bug: #1665037
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, when the virtual size of an image is not known, "None" is displayed.
To a regular user, it feels like a programming error. We try and make things
clearer by using a "human readable" string instead.

Change-Id: Id7b8799356857d9bc58cc8a3677024fe1a7f4f56
Partial-Bug: #1665037
</pre>
</div>
</content>
</entry>
<entry>
<title>Removes unicode 'u' response from "glance image-tag-update"</title>
<updated>2018-02-02T05:06:27+00:00</updated>
<author>
<name>Abijitha Nadagouda</name>
<email>abijitha.nadagouda@tatacommunications.com</email>
</author>
<published>2018-02-02T04:56:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=195add500bac78637f94a008feee986b7800968d'/>
<id>195add500bac78637f94a008feee986b7800968d</id>
<content type='text'>
"glance image-tag-update" command returns unicoded response
for lists. Therefore it requires print_list method from util
class to handle such case. Added unicode_key_value_to_string()
method to remove extra 'u' from lists and dictionaries. This
fix is inspired from cinderclient's implementation.

Change-Id: I16a04e8d34f7629f72fe389456001ca1db9335ea
Closes-bug: #1534046
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
"glance image-tag-update" command returns unicoded response
for lists. Therefore it requires print_list method from util
class to handle such case. Added unicode_key_value_to_string()
method to remove extra 'u' from lists and dictionaries. This
fix is inspired from cinderclient's implementation.

Change-Id: I16a04e8d34f7629f72fe389456001ca1db9335ea
Closes-bug: #1534046
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace assertTrue(isinstance()) with assertIsInstance()</title>
<updated>2017-06-14T04:03:10+00:00</updated>
<author>
<name>Van Hung Pham</name>
<email>hungpv@vn.fujitsu.com</email>
</author>
<published>2017-06-14T04:03:10+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=7791110b2fe4b01dc58078ce3358b4b8a5ead0f4'/>
<id>7791110b2fe4b01dc58078ce3358b4b8a5ead0f4</id>
<content type='text'>
Some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by test tools.

Change-Id: Ibb5e5f848c5632f7c1895c47b8c1a938f2c746c3
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Some of tests use different method of assertTrue(isinstance(A, B))
or assertEqual(type(A), B). The correct way is to use
assertIsInstance(A, B) provided by test tools.

Change-Id: Ibb5e5f848c5632f7c1895c47b8c1a938f2c746c3
</pre>
</div>
</content>
</entry>
<entry>
<title>Add request id to returned objects</title>
<updated>2017-01-20T09:20:42+00:00</updated>
<author>
<name>Ravi Jethani</name>
<email>ravishekar.jethani@nttdata.com</email>
</author>
<published>2016-04-22T13:54:49+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=610177a779b95f931356c1e90b05a5bffd2616b3'/>
<id>610177a779b95f931356c1e90b05a5bffd2616b3</id>
<content type='text'>
Adding two classes RequestIdProxy and GeneratorProxy derived from
wrapt.ObjectProxy to wrap objects returned from the API.

GeneratorProxy class is used to wrap generator objects returned
by cases like images.list() etc. whereas RequestIdProxy class is
used to wrap non-generator object cases like images.create() etc.

In all cases the returned object will have the same behavior as
the wrapped(original) object. However now the returned objects
will have an extra property 'request_ids' which is a list of
exactly one request id.

For generator cases the request_ids property will be an empty list
until the underlying generator is invoked at-least once.

Co-Authored-By: Abhishek Kekane &lt;abhishek.kekane@nttdata.com&gt;

Closes-Bug: #1525259
Blueprint: return-request-id-to-caller
Change-Id: If8c0e0843270ff718a37ca2697afeb8da22aa3b1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Adding two classes RequestIdProxy and GeneratorProxy derived from
wrapt.ObjectProxy to wrap objects returned from the API.

GeneratorProxy class is used to wrap generator objects returned
by cases like images.list() etc. whereas RequestIdProxy class is
used to wrap non-generator object cases like images.create() etc.

In all cases the returned object will have the same behavior as
the wrapped(original) object. However now the returned objects
will have an extra property 'request_ids' which is a list of
exactly one request id.

For generator cases the request_ids property will be an empty list
until the underlying generator is invoked at-least once.

Co-Authored-By: Abhishek Kekane &lt;abhishek.kekane@nttdata.com&gt;

Closes-Bug: #1525259
Blueprint: return-request-id-to-caller
Change-Id: If8c0e0843270ff718a37ca2697afeb8da22aa3b1
</pre>
</div>
</content>
</entry>
<entry>
<title>v2 - "readOnly" key should be used in schemas</title>
<updated>2016-02-04T07:06:13+00:00</updated>
<author>
<name>zwei</name>
<email>leidong@unitedstack.com</email>
</author>
<published>2016-01-18T02:17:14+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=22e3bf0234049982c83f13d3404ef0aaf6413aec'/>
<id>22e3bf0234049982c83f13d3404ef0aaf6413aec</id>
<content type='text'>
    If it has a value of boolean true,
    this keyword indicates that the instance property SHOULD NOT be changed,
    and attempts by a user agent to modify the value of this property are expected to be rejected by a server.
    The value of this keyword MUST be a boolean.
    The default value is false.

    Further link for reference: http://json-schema.org/latest/json-schema-hypermedia.html#anchor15

Closes-Bug: #1521581
Depends-On: I279fba4099667d193609a31259057b897380d6f0
Change-Id: I96717506259c0d28500b8747369c47029b1dd9b6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
    If it has a value of boolean true,
    this keyword indicates that the instance property SHOULD NOT be changed,
    and attempts by a user agent to modify the value of this property are expected to be rejected by a server.
    The value of this keyword MUST be a boolean.
    The default value is false.

    Further link for reference: http://json-schema.org/latest/json-schema-hypermedia.html#anchor15

Closes-Bug: #1521581
Depends-On: I279fba4099667d193609a31259057b897380d6f0
Change-Id: I96717506259c0d28500b8747369c47029b1dd9b6
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure that identity token in header is not an unicode string</title>
<updated>2015-11-17T17:14:20+00:00</updated>
<author>
<name>Vincent Untz</name>
<email>vuntz@suse.com</email>
</author>
<published>2015-04-24T11:29:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=f65ba822682a8ea6939144a77bddef341b997911'/>
<id>f65ba822682a8ea6939144a77bddef341b997911</id>
<content type='text'>
We need all the headers to be safe strings so they can be joined
together and not become an unicode string in doing so.

This fixes a bug when creating an image with non-ascii characters in the
name.

This is required for python 2.6 compatibility.

Change-Id: I66ebc27edf4ccd8f903399da58705711c372536d
Closes-Bug: 1448080
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We need all the headers to be safe strings so they can be joined
together and not become an unicode string in doing so.

This fixes a bug when creating an image with non-ascii characters in the
name.

This is required for python 2.6 compatibility.

Change-Id: I66ebc27edf4ccd8f903399da58705711c372536d
Closes-Bug: 1448080
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Replace exception_to_str with oslo.utils function"</title>
<updated>2015-09-30T18:10:40+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-09-30T18:10:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=8c0c3c9ed4666a4061b1a3d057ae0a2db851dc75'/>
<id>8c0c3c9ed4666a4061b1a3d057ae0a2db851dc75</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace exception_to_str with oslo.utils function</title>
<updated>2015-09-22T12:40:02+00:00</updated>
<author>
<name>kairat_kushaev</name>
<email>kkushaev@mirantis.com</email>
</author>
<published>2015-09-22T12:40:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=c6addc722c99ce2688b335dd20c796c3a5dab1ba'/>
<id>c6addc722c99ce2688b335dd20c796c3a5dab1ba</id>
<content type='text'>
The oslo.utils function has exception_to_unicode that can
replace glance util function exception_to_str.
So we don't to have this exception_to_str function in glance
anymore.

Change-Id: I332bc55558087920fdd6ae2d822bece5166f5ba6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The oslo.utils function has exception_to_unicode that can
replace glance util function exception_to_str.
So we don't to have this exception_to_str function in glance
anymore.

Change-Id: I332bc55558087920fdd6ae2d822bece5166f5ba6
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix human readable when size is None</title>
<updated>2015-09-14T17:27:43+00:00</updated>
<author>
<name>Stuart McLaren</name>
<email>stuart.mclaren@hp.com</email>
</author>
<published>2015-09-14T17:27:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=3d3d8296c490caa4d1f3a0607818a9c2af752233'/>
<id>3d3d8296c490caa4d1f3a0607818a9c2af752233</id>
<content type='text'>
If an image size is null don't stack trace when listing.

Change-Id: Iba18470edbe032d1d01380372d57fa17adef5f7e
Closes-bug: 1495632
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If an image size is null don't stack trace when listing.

Change-Id: Iba18470edbe032d1d01380372d57fa17adef5f7e
Closes-bug: 1495632
</pre>
</div>
</content>
</entry>
<entry>
<title>check for None value in utils.safe_header</title>
<updated>2015-09-07T21:24:36+00:00</updated>
<author>
<name>David Edery</name>
<email>david.edery@alcatel-lucent.com</email>
</author>
<published>2015-09-02T11:50:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=75ec9033c2c29dfd72238dd20ecfb4d35ce95cee'/>
<id>75ec9033c2c29dfd72238dd20ecfb4d35ce95cee</id>
<content type='text'>
In case that a sensetive header (that should be obscured by its SHA1
hash) is None, the safe_header throws an exception which fails the
calling process and by that may harm the functionality.

Change-Id: I56944a382fd546eba0a6dd6d6b1cecf83b1dc106
Closes-Bug: #1491311
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In case that a sensetive header (that should be obscured by its SHA1
hash) is None, the safe_header throws an exception which fails the
calling process and by that may harm the functionality.

Change-Id: I56944a382fd546eba0a6dd6d6b1cecf83b1dc106
Closes-Bug: #1491311
</pre>
</div>
</content>
</entry>
</feed>
