mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-07-22 06:17:15 +00:00
python3-google-auth: upgrade 2.55.1 -> 2.55.2
python3-google-auth refreshed for 2.55.2 Signed-off-by: Wang Mingyu <wangmy@fujitsu.com> Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
This commit is contained in:
+17
-15
@@ -18,15 +18,15 @@ in the embedded ptest runtime without external certificate infrastructure.
|
||||
Upstream-Status: Inappropriate [ptest environment limitation]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
tests/transport/test_requests.py | 7 ++++++-
|
||||
tests/transport/test_requests.py | 6 ++++++
|
||||
tests/transport/test_urllib3.py | 2 ++
|
||||
2 files changed, 8 insertions(+), 1 deletion(-)
|
||||
2 files changed, 8 insertions(+)
|
||||
|
||||
diff --git a/tests/transport/test_requests.py b/tests/transport/test_requests.py
|
||||
index 0da3e36..3a62ef7 100644
|
||||
index f14ccea..6a1cc55 100644
|
||||
--- a/tests/transport/test_requests.py
|
||||
+++ b/tests/transport/test_requests.py
|
||||
@@ -176,6 +176,7 @@ class TimeTickAdapterStub(AdapterStub):
|
||||
@@ -178,6 +178,7 @@ class TimeTickAdapterStub(AdapterStub):
|
||||
class TestMutualTlsAdapter(object):
|
||||
@mock.patch.object(requests.adapters.HTTPAdapter, "init_poolmanager")
|
||||
@mock.patch.object(requests.adapters.HTTPAdapter, "proxy_manager_for")
|
||||
@@ -34,24 +34,23 @@ index 0da3e36..3a62ef7 100644
|
||||
def test_success(self, mock_proxy_manager_for, mock_init_poolmanager):
|
||||
adapter = google.auth.transport.requests._MutualTlsAdapter(
|
||||
pytest.public_cert_bytes, pytest.private_key_bytes
|
||||
@@ -187,6 +188,7 @@ class TestMutualTlsAdapter(object):
|
||||
@@ -189,6 +190,7 @@ class TestMutualTlsAdapter(object):
|
||||
adapter.proxy_manager_for()
|
||||
mock_proxy_manager_for.assert_called_with(ssl_context=adapter._ctx_proxymanager)
|
||||
|
||||
+ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest")
|
||||
def test_invalid_cert_or_key(self):
|
||||
with pytest.raises(OpenSSL.crypto.Error):
|
||||
with pytest.raises(exceptions.MutualTLSChannelError):
|
||||
google.auth.transport.requests._MutualTlsAdapter(
|
||||
@@ -404,7 +406,7 @@ class TestAuthorizedSession(object):
|
||||
authed_session.credentials._create_self_signed_jwt.assert_called_once_with(
|
||||
@@ -408,6 +410,7 @@ class TestAuthorizedSession(object):
|
||||
"https://{}/".format(default_host)
|
||||
)
|
||||
-
|
||||
|
||||
+ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest")
|
||||
def test_configure_mtls_channel_with_callback(self):
|
||||
mock_callback = mock.Mock()
|
||||
mock_callback.return_value = (
|
||||
@@ -429,6 +431,7 @@ class TestAuthorizedSession(object):
|
||||
@@ -432,6 +435,7 @@ class TestAuthorizedSession(object):
|
||||
@mock.patch(
|
||||
"google.auth.transport._mtls_helper.get_client_cert_and_key", autospec=True
|
||||
)
|
||||
@@ -59,7 +58,7 @@ index 0da3e36..3a62ef7 100644
|
||||
def test_configure_mtls_channel_with_metadata(self, mock_get_client_cert_and_key):
|
||||
mock_get_client_cert_and_key.return_value = (
|
||||
True,
|
||||
@@ -548,6 +551,7 @@ class TestMutualTlsOffloadAdapter(object):
|
||||
@@ -888,6 +892,7 @@ class TestMutualTlsOffloadAdapter(object):
|
||||
google.auth.transport._custom_tls_signer.CustomTlsSigner,
|
||||
"attach_to_ssl_context",
|
||||
)
|
||||
@@ -67,7 +66,7 @@ index 0da3e36..3a62ef7 100644
|
||||
def test_success(
|
||||
self,
|
||||
mock_attach_to_ssl_context,
|
||||
@@ -581,6 +585,7 @@ class TestMutualTlsOffloadAdapter(object):
|
||||
@@ -921,6 +926,7 @@ class TestMutualTlsOffloadAdapter(object):
|
||||
google.auth.transport._custom_tls_signer.CustomTlsSigner,
|
||||
"attach_to_ssl_context",
|
||||
)
|
||||
@@ -76,10 +75,10 @@ index 0da3e36..3a62ef7 100644
|
||||
self,
|
||||
mock_attach_to_ssl_context,
|
||||
diff --git a/tests/transport/test_urllib3.py b/tests/transport/test_urllib3.py
|
||||
index e832300..66af909 100644
|
||||
index 3367403..88d0963 100644
|
||||
--- a/tests/transport/test_urllib3.py
|
||||
+++ b/tests/transport/test_urllib3.py
|
||||
@@ -93,12 +93,14 @@ class ResponseStub(object):
|
||||
@@ -94,12 +94,14 @@ class ResponseStub(object):
|
||||
|
||||
|
||||
class TestMakeMutualTlsHttp(object):
|
||||
@@ -92,5 +91,8 @@ index e832300..66af909 100644
|
||||
|
||||
+ @pytest.mark.skip(reason="mTLS requires certificates not available in ptest")
|
||||
def test_crypto_error(self):
|
||||
with pytest.raises(OpenSSL.crypto.Error):
|
||||
with pytest.raises(exceptions.MutualTLSChannelError):
|
||||
google.auth.transport.urllib3._make_mutual_tls_http(
|
||||
--
|
||||
2.43.0
|
||||
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ SRC_URI += " \
|
||||
file://0001-python3-google-auth-Skip-mTLS-tests-in-ptest-environ.patch \
|
||||
file://run-ptest \
|
||||
"
|
||||
SRC_URI[sha256sum] = "fb2d9b730f2c9b8d326ec8d7222f21aef2ead15bf0513793d6442485d87af0a1"
|
||||
SRC_URI[sha256sum] = "97ae7790ff740f2bc9db60eb864a7804f4ac19f5f02c38b3d942f2fea6e9b9ae"
|
||||
|
||||
PYPI_PACKAGE = "google_auth"
|
||||
UPSTREAM_CHECK_PYPI_PACKAGE = "${PYPI_PACKAGE}"
|
||||
Reference in New Issue
Block a user