<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/openstack/python-keystoneclient.git/keystoneclient/tests/unit/test_session.py, branch mitaka-eol</title>
<subtitle>opendev.org: openstack/python-keystoneclient.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/'/>
<entry>
<title>Only log application/json content type</title>
<updated>2017-01-11T05:10:06+00:00</updated>
<author>
<name>Tobias Diaz</name>
<email>tobias.deb@gmail.com</email>
</author>
<published>2016-08-23T15:13:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=a0c67b860b3c5ff6f5fbb0e406dcbc3fd7aa9f88'/>
<id>a0c67b860b3c5ff6f5fbb0e406dcbc3fd7aa9f88</id>
<content type='text'>
This is a combination of 2 commits. The first commit's
message is:

Prevent MemoryError when logging response bodies

Response bodies are loaded into memory prior to
being logged.

Loading huge response bodies may result in a
MemoryError.

This patch proposes that only JSON and TEXT
responses be logged, i.e when the Content-Type
header is application/json or application/text.

Responses that do not include or have a different
Content-Type header will have their body omitted.

This is a sort of backport of the fix for
keystoneauth sessions, see
I93b6fff73368c4f58bdebf8566c4948b50980cee

Co-Authored-By: Samuel de Medeiros Queiroz &lt;samueldmq@gmail.com&gt;

Closes-bug: 1616105

Change-Id: I8f43eee3a0b35041c6cf672e476f8151cf2f8d14
(cherry-picked from: 3e56e0d7e5e1a76d806a3bc1f6d5ef9070f95771)

Only log application/json in session to start

When whitelisting content types to debug print from session we chose
application/json and application/text. application/text is not a real
mime type, text is typically text/plain.

Rather than guess at mime types only print application/json to start
with, but make it easy for additional types to be added later.

Adapted from keystoneauth: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105

Change-Id: Ieaa8fb3ea8d25e09b89498f23b70b18c0f6153f1
(cherry-picked from: 51d16fa344829aadf454faf5e0c4535a8f96a7c8)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is a combination of 2 commits. The first commit's
message is:

Prevent MemoryError when logging response bodies

Response bodies are loaded into memory prior to
being logged.

Loading huge response bodies may result in a
MemoryError.

This patch proposes that only JSON and TEXT
responses be logged, i.e when the Content-Type
header is application/json or application/text.

Responses that do not include or have a different
Content-Type header will have their body omitted.

This is a sort of backport of the fix for
keystoneauth sessions, see
I93b6fff73368c4f58bdebf8566c4948b50980cee

Co-Authored-By: Samuel de Medeiros Queiroz &lt;samueldmq@gmail.com&gt;

Closes-bug: 1616105

Change-Id: I8f43eee3a0b35041c6cf672e476f8151cf2f8d14
(cherry-picked from: 3e56e0d7e5e1a76d806a3bc1f6d5ef9070f95771)

Only log application/json in session to start

When whitelisting content types to debug print from session we chose
application/json and application/text. application/text is not a real
mime type, text is typically text/plain.

Rather than guess at mime types only print application/json to start
with, but make it easy for additional types to be added later.

Adapted from keystoneauth: Ica5fee076cdab8b1d5167161d28af7313fad9477
Related-Bug: 1616105

Change-Id: Ieaa8fb3ea8d25e09b89498f23b70b18c0f6153f1
(cherry-picked from: 51d16fa344829aadf454faf5e0c4535a8f96a7c8)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Do not log binary data during request" into stable/mitaka</title>
<updated>2017-01-10T00:33:45+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2017-01-10T00:33:45+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=a71593b19e52bb4469432d682bacecfb80843d73'/>
<id>a71593b19e52bb4469432d682bacecfb80843d73</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Do not log binary data during request</title>
<updated>2017-01-09T20:06:44+00:00</updated>
<author>
<name>Steve Martinelli</name>
<email>s.martinelli@gmail.com</email>
</author>
<published>2017-01-03T14:55:09+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=e5bc019840c2dd08a4e48fd26a23bff8d1ab644c'/>
<id>e5bc019840c2dd08a4e48fd26a23bff8d1ab644c</id>
<content type='text'>
Do not log binary data during debug logging of a session.
Replace the binary data with the string &lt;binary_data&gt; instead.

sort of a backport of: I5184002f3a21c5e0ee510b21b9a7884c8dccd1e3

Change-Id: I07ddbc3967f297597542f1975004d94c490f6e6b
Related-Bug: 1616105
(cherry picked from commit af770f17b705a66bd4292b2a54df46ec5fdaa12b)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Do not log binary data during debug logging of a session.
Replace the binary data with the string &lt;binary_data&gt; instead.

sort of a backport of: I5184002f3a21c5e0ee510b21b9a7884c8dccd1e3

Change-Id: I07ddbc3967f297597542f1975004d94c490f6e6b
Related-Bug: 1616105
(cherry picked from commit af770f17b705a66bd4292b2a54df46ec5fdaa12b)
</pre>
</div>
</content>
</entry>
<entry>
<title>X-Serivce-Token should be hashed in the log</title>
<updated>2017-01-09T19:53:53+00:00</updated>
<author>
<name>Tin Lam</name>
<email>tinlam@gmail.com</email>
</author>
<published>2017-01-09T16:31:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=398c8fb5160a05d4b28fb11147a9a295e11bcf31'/>
<id>398c8fb5160a05d4b28fb11147a9a295e11bcf31</id>
<content type='text'>
Currently, logs display the hash values of X-Auth-Token,
Authorization, and X-Subject-Token, but not the value of
the X-Service-Token.  This patch set adds the X-Service-Token
to the list of header fields to be hashed for logging purposes.

Change-Id: Iaa3a27f4b6c3baf964fa0c71328ffe9df43b2c0a
Closes-Bug: #1654847
(cherry picked from commit 56af8c90ecbb3cb5d29036151108b1e4e7a69bcc)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, logs display the hash values of X-Auth-Token,
Authorization, and X-Subject-Token, but not the value of
the X-Service-Token.  This patch set adds the X-Service-Token
to the list of header fields to be hashed for logging purposes.

Change-Id: Iaa3a27f4b6c3baf964fa0c71328ffe9df43b2c0a
Closes-Bug: #1654847
(cherry picked from commit 56af8c90ecbb3cb5d29036151108b1e4e7a69bcc)
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Handle exception on UnicodeDecodError in logging of request"</title>
<updated>2016-02-12T04:37:43+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2016-02-12T04:37:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=9fa98872cc7b4390bdefb5ae1ced0ef7c383061c'/>
<id>9fa98872cc7b4390bdefb5ae1ced0ef7c383061c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle exception on UnicodeDecodError in logging of request</title>
<updated>2016-02-10T19:04:47+00:00</updated>
<author>
<name>Trevor McKay</name>
<email>tmckay@redhat.com</email>
</author>
<published>2016-02-09T18:40:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=96fbfeab973cf61cd5ba129056cf4e6634d805b8'/>
<id>96fbfeab973cf61cd5ba129056cf4e6634d805b8</id>
<content type='text'>
If the logging of an HTTP request causes a UnicodeDecodeError,
modify the log entry using oslo_utils.encodeutils.safe_decode
with errors='replace' and try again

Co-Authored-By: Nikita Konovalov &lt;nkonovalov@mirantis.com&gt;

Change-Id: Ic365c654ebca4045208c6c30e232665145db7b4c
Closes-Bug: #1453953
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the logging of an HTTP request causes a UnicodeDecodeError,
modify the log entry using oslo_utils.encodeutils.safe_decode
with errors='replace' and try again

Co-Authored-By: Nikita Konovalov &lt;nkonovalov@mirantis.com&gt;

Change-Id: Ic365c654ebca4045208c6c30e232665145db7b4c
Closes-Bug: #1453953
</pre>
</div>
</content>
</entry>
<entry>
<title>Deprecate Session</title>
<updated>2016-02-03T01:06:07+00:00</updated>
<author>
<name>Jamie Lennox</name>
<email>jamielennox@gmail.com</email>
</author>
<published>2015-12-16T06:41:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=c1c2043da966ad8fb61f93739b11da609ee52d43'/>
<id>c1c2043da966ad8fb61f93739b11da609ee52d43</id>
<content type='text'>
Deprecate the keystoneclient Session object in favour of keystoneauth's
Session.

Change-Id: I26e000d626a466f63d10d2a961adc698f8de0636
Implements: bp deprecate-to-ksa
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Deprecate the keystoneclient Session object in favour of keystoneauth's
Session.

Change-Id: I26e000d626a466f63d10d2a961adc698f8de0636
Implements: bp deprecate-to-ksa
</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://git.baserock.org/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>remove the default arguments "{}"</title>
<updated>2015-12-14T17:59:30+00:00</updated>
<author>
<name>Javeme</name>
<email>zhangmei.li@easystack.cn</email>
</author>
<published>2015-12-07T13:03:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=7a4f019764c21c8e97ff6c91718cb1221d865f03'/>
<id>7a4f019764c21c8e97ff6c91718cb1221d865f03</id>
<content type='text'>
remove the default arguments "{}" when the function is defined.

Change-Id: I81efaf299bc058208a5f553432068e93712cba83
ref: http://docs.python-guide.org/en/latest/writing/gotchas/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
remove the default arguments "{}" when the function is defined.

Change-Id: I81efaf299bc058208a5f553432068e93712cba83
ref: http://docs.python-guide.org/en/latest/writing/gotchas/
</pre>
</div>
</content>
</entry>
<entry>
<title>Merge "Fixes missing socket attribute error during init_poolmanager"</title>
<updated>2015-09-08T23:09:42+00:00</updated>
<author>
<name>Jenkins</name>
<email>jenkins@review.openstack.org</email>
</author>
<published>2015-09-08T23:09:42+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/openstack/python-keystoneclient.git/commit/?id=f630894f66e6048daf299fb2bab2ffeff6666693'/>
<id>f630894f66e6048daf299fb2bab2ffeff6666693</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
