<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-keystoneclient.git/keystoneclient/tests/unit/v3/utils.py, branch pike-eol</title>
<subtitle>opendev.org: openstack/python-keystoneclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/'/>
<entry>
<title>Replace six.iteritems() with .items()</title>
<updated>2017-04-03T12:50:52+00:00</updated>
<author>
<name>M V P Nitesh</name>
<email>m.nitesh@nectechnologies.in</email>
</author>
<published>2017-04-03T12:50:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=46b9e429a2cbfcd1d898616c177538a9283997d3'/>
<id>46b9e429a2cbfcd1d898616c177538a9283997d3</id>
<content type='text'>
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I18a6890935ebdbb589269379f21a0dd47d07eb3a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1.As mentioned in [1], we should avoid using six.iteritems to achieve
iterators. We can use dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible, see the
link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I18a6890935ebdbb589269379f21a0dd47d07eb3a
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix D401 PEP257 violation.</title>
<updated>2016-04-23T06:25:20+00:00</updated>
<author>
<name>Navid Pustchi</name>
<email>npustchi@gmail.com</email>
</author>
<published>2016-04-23T03:19:58+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=946e928b5285a4994c4ef365b43295bdd90c9961'/>
<id>946e928b5285a4994c4ef365b43295bdd90c9961</id>
<content type='text'>
Currently tox ignores D401.
401: First line should be in imperative mood.
This change removes it and make keystoneclient docstrings compliant with it.

Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently tox ignores D401.
401: First line should be in imperative mood.
This change removes it and make keystoneclient docstrings compliant with it.

Change-Id: If34ff12d18390b357342cf29f2d116dd3c86a44d
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Support `truncated` flag returned by identity service"</title>
<updated>2016-02-26T21:39:00+00:00</updated>
<author>
<name>Monty Taylor</name>
<email>mordred@inaugust.com</email>
</author>
<published>2016-02-26T21:39:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=b4b168bdbf9554bae0faf77354b5d592f98e6846'/>
<id>b4b168bdbf9554bae0faf77354b5d592f98e6846</id>
<content type='text'>
This reverts commit 870be44c0ed5564101f9cf9d53e8085fb01680c8.

This change breaks end users of the library. See:

http://logs.openstack.org/50/285450/1/check/gate-shade-dsvm-functional-keystone2/d1093b5/console.html#_2016-02-26_20_49_32_928

For an example of a consumer of the library being broken.

Change-Id: I1912003afb89579eb869767db7a411c451bc9806
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 870be44c0ed5564101f9cf9d53e8085fb01680c8.

This change breaks end users of the library. See:

http://logs.openstack.org/50/285450/1/check/gate-shade-dsvm-functional-keystone2/d1093b5/console.html#_2016-02-26_20_49_32_928

For an example of a consumer of the library being broken.

Change-Id: I1912003afb89579eb869767db7a411c451bc9806
</pre>
</div>
</content>
</entry>
<entry>
<title>Support `truncated` flag returned by identity service</title>
<updated>2016-02-26T00:06:09+00:00</updated>
<author>
<name>Boris Bobrov</name>
<email>bbobrov@mirantis.com</email>
</author>
<published>2016-02-15T11:14:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=870be44c0ed5564101f9cf9d53e8085fb01680c8'/>
<id>870be44c0ed5564101f9cf9d53e8085fb01680c8</id>
<content type='text'>
Create a custom list with flag `truncated` to support corresponding
response from the identity service.

This is wanted by Horizon, that wants to know that the list returned
from keystone is not full and that more strict filters need to be
applied.

The previous attempt in commit c28d40814962b3a8ccb81e5e7d7f832c8f0a3c9a
was reverted by d20b300589863bcf165945beb129ebcc3621a14f because it
broke other code. This commit changes the way the flag is added and
verifies that existing code will not break.

Change-Id: Ia86cfd91110adae6d7ab86ff1f152a8f9be27837
Closes-Bug: 1520244
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Create a custom list with flag `truncated` to support corresponding
response from the identity service.

This is wanted by Horizon, that wants to know that the list returned
from keystone is not full and that more strict filters need to be
applied.

The previous attempt in commit c28d40814962b3a8ccb81e5e7d7f832c8f0a3c9a
was reverted by d20b300589863bcf165945beb129ebcc3621a14f because it
broke other code. This commit changes the way the flag is added and
verifies that existing code will not break.

Change-Id: Ia86cfd91110adae6d7ab86ff1f152a8f9be27837
Closes-Bug: 1520244
</pre>
</div>
</content>
</entry>
<entry>
<title>Replace TestResponse with requests_mock</title>
<updated>2016-01-24T22:56:34+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@gmail.com</email>
</author>
<published>2015-12-17T00:41:36+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=59ba76535cb3c2f945a9440ae6efc50470cc08e1'/>
<id>59ba76535cb3c2f945a9440ae6efc50470cc08e1</id>
<content type='text'>
The TestResponse object doesn't do the right thing with regards to
content vs text. Just reuse the one from requests_mock rather that try
and fix it.

Change-Id: Ia8bcae126babb0e616329928c57f875a50a957d6
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The TestResponse object doesn't do the right thing with regards to
content vs text. Just reuse the one from requests_mock rather that try
and fix it.

Change-Id: Ia8bcae126babb0e616329928c57f875a50a957d6
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Support `truncated` flag returned by keystone"</title>
<updated>2016-01-13T21:36:13+00:00</updated>
<author>
<name>Brant Knudson</name>
<email>bknudson@us.ibm.com</email>
</author>
<published>2016-01-13T21:36:13+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=d20b300589863bcf165945beb129ebcc3621a14f'/>
<id>d20b300589863bcf165945beb129ebcc3621a14f</id>
<content type='text'>
This reverts commit c28d40814962b3a8ccb81e5e7d7f832c8f0a3c9a.

This is causing stable keystone to fail. keystone has tests
that verify that the returned value of the list
operation == [], which fails since the return value is now
an object and not a list.

Change-Id: Ieb143574271b991d3e19e864497073fbedf46bcb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit c28d40814962b3a8ccb81e5e7d7f832c8f0a3c9a.

This is causing stable keystone to fail. keystone has tests
that verify that the returned value of the list
operation == [], which fails since the return value is now
an object and not a list.

Change-Id: Ieb143574271b991d3e19e864497073fbedf46bcb
</pre>
</div>
</content>
</entry>
<entry>
<title>Support `truncated` flag returned by keystone</title>
<updated>2015-12-28T14:54:00+00:00</updated>
<author>
<name>Boris Bobrov</name>
<email>bbobrov@mirantis.com</email>
</author>
<published>2015-11-26T16:10:10+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=c28d40814962b3a8ccb81e5e7d7f832c8f0a3c9a'/>
<id>c28d40814962b3a8ccb81e5e7d7f832c8f0a3c9a</id>
<content type='text'>
Wrap a list of objects into custom class with additional attributes.

This is wanted by Horizon, that wants to know that the list returned
from keystone is not full and that more strict filters need to be
applied.

Change-Id: Icfabfd055aed1648dc4130b03ec3dbf9bad4e45a
Closes-Bug: 1520244
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Wrap a list of objects into custom class with additional attributes.

This is wanted by Horizon, that wants to know that the list returned
from keystone is not full and that more strict filters need to be
applied.

Change-Id: Icfabfd055aed1648dc4130b03ec3dbf9bad4e45a
Closes-Bug: 1520244
</pre>
</div>
</content>
</entry>
<entry>
<title>Make tests run against original client and sessions</title>
<updated>2015-12-17T22:23:06+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@redhat.com</email>
</author>
<published>2014-08-27T02:32:16+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=b939dd9922abdb5257f785fca4e1d41741ddb078'/>
<id>b939dd9922abdb5257f785fca4e1d41741ddb078</id>
<content type='text'>
The managers have a bad habit of reaching back into the client and
making assumptions about the values that are saved there. These
assumptions are not always correct when we use the session object.

Test all the versioned managers against a client that was constructed
with the old method and with a keystoneclient session object and a
keystoneauth1 session object.

Change-Id: I93a26db7ae7e4d887aa815108be71c72b4a1f2bb
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The managers have a bad habit of reaching back into the client and
making assumptions about the values that are saved there. These
assumptions are not always correct when we use the session object.

Test all the versioned managers against a client that was constructed
with the old method and with a keystoneclient session object and a
keystoneauth1 session object.

Change-Id: I93a26db7ae7e4d887aa815108be71c72b4a1f2bb
</pre>
</div>
</content>
</entry>
<entry>
<title>Seperate Client base test class</title>
<updated>2015-12-17T22:23:06+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@gmail.com</email>
</author>
<published>2015-12-16T00:31:38+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=2dd67f8a00443be715dde39b6218ff2c638c26fe'/>
<id>2dd67f8a00443be715dde39b6218ff2c638c26fe</id>
<content type='text'>
Client tests are broadly seperated into v2 and v3. These folders don't
distinguish between the tests that are on v2/v3 auth and those that are
CRUD related. This means that the base v2 and v3 test class always
create a client object for the tests to use, even if they don't need it.

Whilst this isn't a big deal now, we want to be able to seperate only
those tests that require a client so we can test them with multiple
different styles of client.

Add a new ClientTestCase class that will construct a client object for
the tests that need it.

Change-Id: I61f463ac5e878107c1889672f4d4cf5874821363
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Client tests are broadly seperated into v2 and v3. These folders don't
distinguish between the tests that are on v2/v3 auth and those that are
CRUD related. This means that the base v2 and v3 test class always
create a client object for the tests to use, even if they don't need it.

Whilst this isn't a big deal now, we want to be able to seperate only
those tests that require a client so we can test them with multiple
different styles of client.

Add a new ClientTestCase class that will construct a client object for
the tests that need it.

Change-Id: I61f463ac5e878107c1889672f4d4cf5874821363
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate create v3 Client without session</title>
<updated>2015-08-14T00:01:42+00:00</updated>
<author>
<name>Brant Knudson</name>
<email>bknudson@us.ibm.com</email>
</author>
<published>2015-07-26T13:55:30+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=4e4dedec6ea8fd71354772552166255ddf39abed'/>
<id>4e4dedec6ea8fd71354772552166255ddf39abed</id>
<content type='text'>
There was a comment to deprecate creating a v3 Client
without a session.

bp deprecations

Change-Id: Ifc3fa9ffef12554646ca80f04527de757df3aa95
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There was a comment to deprecate creating a v3 Client
without a session.

bp deprecations

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