<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-glanceclient.git/glanceclient/tests, branch 1.1.1</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>Merge "Fix the download error when the image locations are blank" into stable/liberty</title>
<updated>2016-03-09T17:30:23+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-03-09T17:30:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=26d2a0f4c29d15208b426443e7a5f8570abdc323'/>
<id>26d2a0f4c29d15208b426443e7a5f8570abdc323</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Use session when not specified token or endpoint" into stable/liberty</title>
<updated>2016-03-09T17:30:15+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-03-09T17:30:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=8d87a244e04e623495f2e9c0a0f239d47faf8e0e'/>
<id>8d87a244e04e623495f2e9c0a0f239d47faf8e0e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Use session when not specified token or endpoint</title>
<updated>2016-03-09T13:47:56+00:00</updated>
<author>
<name>Darja Shakhray</name>
<email>dshakhray@mirantis.com</email>
</author>
<published>2015-12-29T13:41:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=c11c8c432bde60e6ef652119186aa205c3bf3076'/>
<id>c11c8c432bde60e6ef652119186aa205c3bf3076</id>
<content type='text'>
When no token or endpoint, it creates a session and from there
taken the necessary values.
This commit proposes to transfer a session in such cases.
This will avoid unnecessary actions and some of the problems.

Change-Id: Idc874b6c01e915e52904604d59e8e0b460e71621
Partial-bug: #1519546
(cherry picked from commit bda34034eb74023ffb1edf4a0c26aa574da0926d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When no token or endpoint, it creates a session and from there
taken the necessary values.
This commit proposes to transfer a session in such cases.
This will avoid unnecessary actions and some of the problems.

Change-Id: Idc874b6c01e915e52904604d59e8e0b460e71621
Partial-bug: #1519546
(cherry picked from commit bda34034eb74023ffb1edf4a0c26aa574da0926d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix the download error when the image locations are blank</title>
<updated>2016-03-09T13:46:23+00:00</updated>
<author>
<name>Long Quan Sha</name>
<email>shalq@cn.ibm.com</email>
</author>
<published>2015-07-08T01:29:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=c077858dd6e0cd827af2418e1a05ca1f27937764'/>
<id>c077858dd6e0cd827af2418e1a05ca1f27937764</id>
<content type='text'>
When the image locations are blank, glance client will get a http response
with no content, glance client should show user no data could be found,
instead of processing the blank response body that will lead to exception.

Glance client will also get a 204 response when an image is in a queued
state (this is true for 'master' and liberty/kilo/juno based servers).

Closes-Bug: #1472449

Co-Authored-by: Stuart McLaren &lt;stuart.mclaren@hp.com&gt;
Change-Id: I5d3d02d6aa7c8dd054cd2933e15b4a26e91afea1
(cherry picked from commit 44d0b02c67ce7926f40377d9367a0f61124ed26d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When the image locations are blank, glance client will get a http response
with no content, glance client should show user no data could be found,
instead of processing the blank response body that will lead to exception.

Glance client will also get a 204 response when an image is in a queued
state (this is true for 'master' and liberty/kilo/juno based servers).

Closes-Bug: #1472449

Co-Authored-by: Stuart McLaren &lt;stuart.mclaren@hp.com&gt;
Change-Id: I5d3d02d6aa7c8dd054cd2933e15b4a26e91afea1
(cherry picked from commit 44d0b02c67ce7926f40377d9367a0f61124ed26d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip schema validation on GET /v2/images/%s</title>
<updated>2016-03-04T15:15:29+00:00</updated>
<author>
<name>Nicolas Simonds</name>
<email>nic@metacloud.com</email>
</author>
<published>2015-09-30T16:42:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=57acbf2ade016cd7b678db6689c4b572499e121c'/>
<id>57acbf2ade016cd7b678db6689c4b572499e121c</id>
<content type='text'>
These are server-generated, not user-generated, and schema validation
should not be necessary.

Rework a unit test that enforces this; bad data should be blocked
at ingest, not blocked on reads.

Co-authored-by: Stuart McLaren &lt;stuart.mclaren@hp.com&gt;
Change-Id: Ib1926fec0e858b6eed43c7931a6d6c3a1708e70e
Closes-Bug: 1501046
(cherry picked from commit 214dbffc926bfe94145607d5f293734b81a1827d)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are server-generated, not user-generated, and schema validation
should not be necessary.

Rework a unit test that enforces this; bad data should be blocked
at ingest, not blocked on reads.

Co-authored-by: Stuart McLaren &lt;stuart.mclaren@hp.com&gt;
Change-Id: Ib1926fec0e858b6eed43c7931a6d6c3a1708e70e
Closes-Bug: 1501046
(cherry picked from commit 214dbffc926bfe94145607d5f293734b81a1827d)
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the subcomand parsed args instead of the base</title>
<updated>2015-10-14T11:45:00+00:00</updated>
<author>
<name>Flavio Percoco</name>
<email>flaper87@gmail.com</email>
</author>
<published>2015-10-08T10:47:37+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=57709f7538391c91c072e3eadbc4c6861ee79a30'/>
<id>57709f7538391c91c072e3eadbc4c6861ee79a30</id>
<content type='text'>
Pass the subcomand's arguments instead of the base ones to the endpoint
creation call when quering the `/versions` endpoint. Passing the wrong
arguments will end in the auth_requirement not being identified and an
error 'Expected Endpoint' will be raised as no endpoint will be gotten
from keystone.

This patch also removes an unnecessary mock in the test code related to
this fix.

Closes-bug: #1504058
Change-Id: I46088130b9175798e3719e43f48dc474fbc8a251
(cherry picked from commit 36937bbf6300a468f0eb1da5461c2edeb8d47a44)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Pass the subcomand's arguments instead of the base ones to the endpoint
creation call when quering the `/versions` endpoint. Passing the wrong
arguments will end in the auth_requirement not being identified and an
error 'Expected Endpoint' will be raised as no endpoint will be gotten
from keystone.

This patch also removes an unnecessary mock in the test code related to
this fix.

Closes-bug: #1504058
Change-Id: I46088130b9175798e3719e43f48dc474fbc8a251
(cherry picked from commit 36937bbf6300a468f0eb1da5461c2edeb8d47a44)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix human readable when size is None</title>
<updated>2015-09-28T10:35:29+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=e895e1a6b1c17f18f254a8c32dba2195302edfcd'/>
<id>e895e1a6b1c17f18f254a8c32dba2195302edfcd</id>
<content type='text'>
If an image size is null don't stack trace when listing.

Change-Id: Iba18470edbe032d1d01380372d57fa17adef5f7e
Closes-bug: 1495632
(cherry picked from commit 3d3d8296c490caa4d1f3a0607818a9c2af752233)
</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
(cherry picked from commit 3d3d8296c490caa4d1f3a0607818a9c2af752233)
</pre>
</div>
</content>
</entry>
<entry>
<title>No auth when token and endpoint are passed</title>
<updated>2015-09-25T15:52:41+00:00</updated>
<author>
<name>Flavio Percoco</name>
<email>flaper87@gmail.com</email>
</author>
<published>2015-09-25T08:54:29+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=76a91c9fbceffe660b4dc39813e435fc0b7cc6ac'/>
<id>76a91c9fbceffe660b4dc39813e435fc0b7cc6ac</id>
<content type='text'>
The latest change to the auth_required logic introduced a bug were even
when the token and endpoint were passed, authentication was being
required.

This patch fixes that issue and makes sure that authentication is not
required when these 2 arguements are present.

Closes-bug: #1499540

Change-Id: I4c9c15ba526378970da5461511ed922d42c5a9f9
(cherry picked from commit c31c1365573d10bd09afad47ca1974af3e50b5eb)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The latest change to the auth_required logic introduced a bug were even
when the token and endpoint were passed, authentication was being
required.

This patch fixes that issue and makes sure that authentication is not
required when these 2 arguements are present.

Closes-bug: #1499540

Change-Id: I4c9c15ba526378970da5461511ed922d42c5a9f9
(cherry picked from commit c31c1365573d10bd09afad47ca1974af3e50b5eb)
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't get the image before deleting it</title>
<updated>2015-09-23T06:56:45+00:00</updated>
<author>
<name>Flavio Percoco</name>
<email>flaper87@gmail.com</email>
</author>
<published>2015-09-16T08:56:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=e82d9df74cbac9accc8a6724c0759760e44bb315'/>
<id>e82d9df74cbac9accc8a6724c0759760e44bb315</id>
<content type='text'>
The client currently downloads the image metadata to check if it's deleted
or not. This logic belongs to the server and it's already implemented
there. Instead of getting the image, send the delete request and catch
the 404 error, which is already raised by the server.

Change-Id: I1e6ef42340f8e380ff99b9d6ca7ea416e0eebfbc
Closes-bug: #1496305
(cherry picked from commit b8a881f5ea89514d715e61b632bc3081a0dde2c6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The client currently downloads the image metadata to check if it's deleted
or not. This logic belongs to the server and it's already implemented
there. Instead of getting the image, send the delete request and catch
the 404 error, which is already raised by the server.

Change-Id: I1e6ef42340f8e380ff99b9d6ca7ea416e0eebfbc
Closes-bug: #1496305
(cherry picked from commit b8a881f5ea89514d715e61b632bc3081a0dde2c6)
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixes CLI client called without subcommands</title>
<updated>2015-09-11T12:56:08+00:00</updated>
<author>
<name>Erno Kuvaja</name>
<email>jokke@usr.fi</email>
</author>
<published>2015-09-10T10:10:06+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-glanceclient.git/commit/?id=160825f909cb1e0f876c2a040dbfb5aae5fd01d4'/>
<id>160825f909cb1e0f876c2a040dbfb5aae5fd01d4</id>
<content type='text'>
If CLI client is called without any subcommands or arguments it will
fail with """'Namespace' object has no attribute 'command'""". This
is coming from the getattr which does not have alternate value
specified.

Closes-Bug: #1494259

Change-Id: I461f0d4a91f3af2224bafc14a88572a8e4a3c051
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If CLI client is called without any subcommands or arguments it will
fail with """'Namespace' object has no attribute 'command'""". This
is coming from the getattr which does not have alternate value
specified.

Closes-Bug: #1494259

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