aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/google-auth/py3
diff options
context:
space:
mode:
authorrobot-piglet <robot-piglet@yandex-team.com>2025-05-22 10:52:30 +0300
committerrobot-piglet <robot-piglet@yandex-team.com>2025-05-22 11:35:58 +0300
commitac572c15237bee796bee602e53d7ba458ec93134 (patch)
tree1e5588395966bb499df7c6fb8136d1e321f139c0 /contrib/python/google-auth/py3
parent40345758178d46f1b914ec88316ca363bbcab252 (diff)
downloadydb-ac572c15237bee796bee602e53d7ba458ec93134.tar.gz
Intermediate changes
commit_hash:6367657994b2b5807211ad25da40f3a88dbe4783
Diffstat (limited to 'contrib/python/google-auth/py3')
-rw-r--r--contrib/python/google-auth/py3/.dist-info/METADATA2
-rw-r--r--contrib/python/google-auth/py3/google/auth/aio/_helpers.py7
-rw-r--r--contrib/python/google-auth/py3/google/auth/version.py2
-rw-r--r--contrib/python/google-auth/py3/tests/aio/test__helpers.py8
-rw-r--r--contrib/python/google-auth/py3/ya.make2
5 files changed, 11 insertions, 10 deletions
diff --git a/contrib/python/google-auth/py3/.dist-info/METADATA b/contrib/python/google-auth/py3/.dist-info/METADATA
index ddba2bddaed..6d1bff83523 100644
--- a/contrib/python/google-auth/py3/.dist-info/METADATA
+++ b/contrib/python/google-auth/py3/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: google-auth
-Version: 2.40.0
+Version: 2.40.1
Summary: Google Authentication Library
Home-page: https://github.com/googleapis/google-auth-library-python
Author: Google Cloud Platform
diff --git a/contrib/python/google-auth/py3/google/auth/aio/_helpers.py b/contrib/python/google-auth/py3/google/auth/aio/_helpers.py
index fd7d37a2f7b..1d5a4618cb6 100644
--- a/contrib/python/google-auth/py3/google/auth/aio/_helpers.py
+++ b/contrib/python/google-auth/py3/google/auth/aio/_helpers.py
@@ -53,5 +53,10 @@ async def response_log_async(logger: logging.Logger, response: Any) -> None:
response: The HTTP response object to log.
"""
if _helpers.is_logging_enabled(logger):
- json_response = await _parse_response_async(response)
+ # TODO(https://github.com/googleapis/google-auth-library-python/issues/1755):
+ # Parsing the response for async streaming logging results in
+ # the stream to be empty downstream. For now, we will not be logging
+ # the response for async responses until we investigate further.
+ # json_response = await _parse_response_async(response)
+ json_response = None
_helpers._response_log_base(logger, json_response)
diff --git a/contrib/python/google-auth/py3/google/auth/version.py b/contrib/python/google-auth/py3/google/auth/version.py
index d1363c1ef0e..ee0bb12609d 100644
--- a/contrib/python/google-auth/py3/google/auth/version.py
+++ b/contrib/python/google-auth/py3/google/auth/version.py
@@ -12,4 +12,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-__version__ = "2.40.0"
+__version__ = "2.40.1"
diff --git a/contrib/python/google-auth/py3/tests/aio/test__helpers.py b/contrib/python/google-auth/py3/tests/aio/test__helpers.py
index 7642431caec..829dc97ff33 100644
--- a/contrib/python/google-auth/py3/tests/aio/test__helpers.py
+++ b/contrib/python/google-auth/py3/tests/aio/test__helpers.py
@@ -65,17 +65,13 @@ async def test_response_log_debug_disabled(logger, caplog, base_logger):
@pytest.mark.asyncio
async def test_response_log_debug_enabled_response_json(logger, caplog, base_logger):
- class MockResponse:
- async def json(self):
- return {"key1": "value1", "key2": "value2", "key3": "value3"}
-
- response = MockResponse()
+ response = None
caplog.set_level(logging.DEBUG, logger=_MOCK_CHILD_LOGGER_NAME)
await _helpers.response_log_async(logger, response)
assert len(caplog.records) == 1
record = caplog.records[0]
assert record.message == "Response received..."
- assert record.httpResponse == {"key1": "value1", "key2": "value2", "key3": "value3"}
+ assert record.httpResponse == "<class 'NoneType'>"
@pytest.mark.asyncio
diff --git a/contrib/python/google-auth/py3/ya.make b/contrib/python/google-auth/py3/ya.make
index 7ceec35306e..83c9200ad11 100644
--- a/contrib/python/google-auth/py3/ya.make
+++ b/contrib/python/google-auth/py3/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(2.40.0)
+VERSION(2.40.1)
LICENSE(Apache-2.0)