<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-keystoneclient.git/keystoneclient/tests/unit/test_base.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>Stop using oslotest.mockpatch</title>
<updated>2017-05-03T08:50:32+00:00</updated>
<author>
<name>ChangBo Guo(gcb)</name>
<email>eric.guo@easystack.cn</email>
</author>
<published>2017-05-03T08:50:32+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=dd2000b284dad0f19971bcf627410d37eea02409'/>
<id>dd2000b284dad0f19971bcf627410d37eea02409</id>
<content type='text'>
This module has been deprecated in favor of native fixtures.

Change-Id: I8fa00396f64d81eba807b2c6cbf4ae810447c59b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This module has been deprecated in favor of native fixtures.

Change-Id: I8fa00396f64d81eba807b2c6cbf4ae810447c59b
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix non-ascii attributes</title>
<updated>2016-09-24T18:18:22+00:00</updated>
<author>
<name>Roman Bogorodskiy</name>
<email>bogorodskiy@gmail.com</email>
</author>
<published>2016-09-22T06:06:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=dc9e4491779c0347f4eb770de03827b967541bf3'/>
<id>dc9e4491779c0347f4eb770de03827b967541bf3</id>
<content type='text'>
It's possible to set and get custom attributes through the API, and
it's also possible to use any Unicode strings, not only ASCII range.
It works perfectly fine when accessing the API directly using
e.g. curl.

However, keystoneclient stumbles on the non-ascii keys because
it tries to set this as an attribute for the resource class and fails
because Python 2.7 does not support non-ascii identifiers:

https://docs.python.org/2.7/reference/lexical_analysis.html#identifiers

So change the logic to skip setting non-ascii attributes; they are still
available in the dict representation.

Closes-Bug: #1626403
Change-Id: I267188cdb1d303e3d0fb6bd3229b606f4fe9b2d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's possible to set and get custom attributes through the API, and
it's also possible to use any Unicode strings, not only ASCII range.
It works perfectly fine when accessing the API directly using
e.g. curl.

However, keystoneclient stumbles on the non-ascii keys because
it tries to set this as an attribute for the resource class and fails
because Python 2.7 does not support non-ascii identifiers:

https://docs.python.org/2.7/reference/lexical_analysis.html#identifiers

So change the logic to skip setting non-ascii attributes; they are still
available in the dict representation.

Closes-Bug: #1626403
Change-Id: I267188cdb1d303e3d0fb6bd3229b606f4fe9b2d8
</pre>
</div>
</content>
</entry>
<entry>
<title>Add __ne__ built-in function</title>
<updated>2016-08-11T03:19:30+00:00</updated>
<author>
<name>yuyafei</name>
<email>yu.yafei@zte.com.cn</email>
</author>
<published>2016-07-05T07:21:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=ef34175095d92a117fda149ad8a2e216e3a2b78c'/>
<id>ef34175095d92a117fda149ad8a2e216e3a2b78c</id>
<content type='text'>
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining
__eq__(), one should also define __ne__() so that the operators
will behave as expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__
Also fixes spelling errors:resoruces.

Change-Id: Iae4ce0fe84fae810711cc8c3fdb94eb9ca1d772e
Closes-Bug: #1586268
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In Python 3 __ne__ by default delegates to __eq__ and inverts the
result, but in Python 2 they urge you to define __ne__ when you
define __eq__ for it to work properly [1].There are no implied
relationships among the comparison operators. The truth of x==y
does not imply that x!=y is false. Accordingly, when defining
__eq__(), one should also define __ne__() so that the operators
will behave as expected.
[1]https://docs.python.org/2/reference/datamodel.html#object.__ne__
Also fixes spelling errors:resoruces.

Change-Id: Iae4ce0fe84fae810711cc8c3fdb94eb9ca1d772e
Closes-Bug: #1586268
</pre>
</div>
</content>
</entry>
<entry>
<title>Use the adapter instead of the client in tests</title>
<updated>2016-07-05T19:36:36+00:00</updated>
<author>
<name>David Stanek</name>
<email>dstanek@dstanek.com</email>
</author>
<published>2016-07-05T19:22:47+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=ea59511cc2e6dc9598a2debbb91926f14da5d624'/>
<id>ea59511cc2e6dc9598a2debbb91926f14da5d624</id>
<content type='text'>
Both the V2.0 and V3 clients create managers by passing in an instance
of the _KeystoneAdapter class. Is seems reasonable for the tests to do
the same things to keep everything consistent.

Change-Id: I06d256e71105fdad3f4d182a53a6887617b4cffe
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Both the V2.0 and V3 clients create managers by passing in an instance
of the _KeystoneAdapter class. Is seems reasonable for the tests to do
the same things to keep everything consistent.

Change-Id: I06d256e71105fdad3f4d182a53a6887617b4cffe
</pre>
</div>
</content>
</entry>
<entry>
<title>Change tests to pass session to Client</title>
<updated>2016-02-28T17:17:43+00:00</updated>
<author>
<name>Brant Knudson</name>
<email>bknudson@us.ibm.com</email>
</author>
<published>2016-02-28T15:42:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=1b3b4a8a54f0cc9e91272316ff153dfa9e32936b'/>
<id>1b3b4a8a54f0cc9e91272316ff153dfa9e32936b</id>
<content type='text'>
It's deprecated to construct a Client without a session. There were
several tests that were constructing a Client without a session. So
that we can eventually remove the deprecated behavior, change these
tests to use a session.

Change-Id: Ib73d7807bb62aa84485df84b89dff4ca6956a30b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It's deprecated to construct a Client without a session. There were
several tests that were constructing a Client without a session. So
that we can eventually remove the deprecated behavior, change these
tests to use a session.

Change-Id: Ib73d7807bb62aa84485df84b89dff4ca6956a30b
</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>Fix Resource.__eq__ mismatch semantics of object equal</title>
<updated>2015-12-16T07:53:31+00:00</updated>
<author>
<name>Rui Chen</name>
<email>chenrui.momo@gmail.com</email>
</author>
<published>2015-12-01T12:32:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=fcbb2d724899e265e168100718399f7886f3f1f5'/>
<id>fcbb2d724899e265e168100718399f7886f3f1f5</id>
<content type='text'>
The __eq__ of apiclient.base.Resource will return True,
if the two objects have same id, even if they have different
other attributes value. The behavior is weird and don't
match the semantics of object equal. The objects that have
different value should be different objects.
Fix this issue and add some test cases in this patch.

Change-Id: I1565c6e66d6dd6cf7bd2b7e8526157190deb45de
Closes-Bug: #1499369
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The __eq__ of apiclient.base.Resource will return True,
if the two objects have same id, even if they have different
other attributes value. The behavior is weird and don't
match the semantics of object equal. The objects that have
different value should be different objects.
Fix this issue and add some test cases in this patch.

Change-Id: I1565c6e66d6dd6cf7bd2b7e8526157190deb45de
Closes-Bug: #1499369
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate create v2_0 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:46:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=b94a61012ed9749f818e88366c57aa566a39101d'/>
<id>b94a61012ed9749f818e88366c57aa566a39101d</id>
<content type='text'>
There was a comment to deprecate creating a v2_0 Client
without a session.

bp deprecations

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

bp deprecations

Change-Id: I71ff64754c8f90d184615eeec558718c11a1794a
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix tests passing user, project, and token</title>
<updated>2015-07-26T11:54:23+00:00</updated>
<author>
<name>Brant Knudson</name>
<email>bknudson@us.ibm.com</email>
</author>
<published>2015-07-24T20:21:53+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/openstack/python-keystoneclient.git/commit/?id=0b745909a66508b539c848e2d8101a56abadb69e'/>
<id>0b745909a66508b539c848e2d8101a56abadb69e</id>
<content type='text'>
The tests were creating httpclient.HTTPClient() using username,
token, and project, but if you pass a token then username and
project are going to be ignored since there's no need to auth.

Make the tests more understandable by removing the ignored and
useless parameters.

bp deprecations

Change-Id: Ide3f4be4dd00db89f551d014876625cff296f6a7
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests were creating httpclient.HTTPClient() using username,
token, and project, but if you pass a token then username and
project are going to be ignored since there's no need to auth.

Make the tests more understandable by removing the ignored and
useless parameters.

bp deprecations

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