14
0
Files
python-google-auth/python-google-auth-no-mock.patch
Markéta Machová 694fb8a141 Accepting request 1201529 from home:glaubitz:branches:devel:languages:python
- Update to version 2.34.0
  * **auth:** Update get_client_ssl_credentials to support X.509 workload certs (#1558)
  * Retry token request on retryable status code (#1563)
- from version 2.33.0
  * Implement async `StaticCredentials` using access tokens (#1559)
  * Implement base classes for credentials and request sessions (#1551)
  * **metadata:** Enhance retry logic for metadata server access in _metadata.py (#1545)
  * Update argument for Credentials initialization (#1557)
- Refresh patches for new version
  * python-google-auth-no-mock.patch

OBS-URL: https://build.opensuse.org/request/show/1201529
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-google-auth?expand=0&rev=100
2024-09-17 12:28:19 +00:00

442 lines
17 KiB
Diff

diff -Nru google_auth-2.34.0.orig/tests/compute_engine/test_credentials.py google_auth-2.34.0/tests/compute_engine/test_credentials.py
--- google_auth-2.34.0.orig/tests/compute_engine/test_credentials.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/compute_engine/test_credentials.py 2024-09-17 09:34:09.912609514 +0200
@@ -14,7 +14,7 @@
import base64
import datetime
-import mock
+from unittest import mock
import pytest # type: ignore
import responses # type: ignore
diff -Nru google_auth-2.34.0.orig/tests/compute_engine/test__metadata.py google_auth-2.34.0/tests/compute_engine/test__metadata.py
--- google_auth-2.34.0.orig/tests/compute_engine/test__metadata.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/compute_engine/test__metadata.py 2024-09-17 09:34:09.915942848 +0200
@@ -18,7 +18,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/conftest.py google_auth-2.34.0/tests/conftest.py
--- google_auth-2.34.0.orig/tests/conftest.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/conftest.py 2024-09-17 09:34:09.792609487 +0200
@@ -15,7 +15,7 @@
import os
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
diff -Nru google_auth-2.34.0.orig/tests/crypt/test__python_rsa.py google_auth-2.34.0/tests/crypt/test__python_rsa.py
--- google_auth-2.34.0.orig/tests/crypt/test__python_rsa.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/crypt/test__python_rsa.py 2024-09-17 09:34:09.952609523 +0200
@@ -16,7 +16,7 @@
import json
import os
-import mock
+from unittest import mock
from pyasn1_modules import pem # type: ignore
import pytest # type: ignore
import rsa # type: ignore
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_challenges.py google_auth-2.34.0/tests/oauth2/test_challenges.py
--- google_auth-2.34.0.orig/tests/oauth2/test_challenges.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_challenges.py 2024-09-17 09:34:09.879276173 +0200
@@ -18,7 +18,7 @@
import os
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
import pyu2f # type: ignore
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test__client.py google_auth-2.34.0/tests/oauth2/test__client.py
--- google_auth-2.34.0.orig/tests/oauth2/test__client.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test__client.py 2024-09-17 09:34:09.865942837 +0200
@@ -18,7 +18,7 @@
import os
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_credentials.py google_auth-2.34.0/tests/oauth2/test_credentials.py
--- google_auth-2.34.0.orig/tests/oauth2/test_credentials.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_credentials.py 2024-09-17 09:34:09.872609505 +0200
@@ -18,7 +18,7 @@
import pickle
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_gdch_credentials.py google_auth-2.34.0/tests/oauth2/test_gdch_credentials.py
--- google_auth-2.34.0.orig/tests/oauth2/test_gdch_credentials.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_gdch_credentials.py 2024-09-17 09:34:09.852609501 +0200
@@ -17,7 +17,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
import requests
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_id_token.py google_auth-2.34.0/tests/oauth2/test_id_token.py
--- google_auth-2.34.0.orig/tests/oauth2/test_id_token.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_id_token.py 2024-09-17 09:34:09.855942835 +0200
@@ -15,7 +15,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import environment_vars
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_reauth.py google_auth-2.34.0/tests/oauth2/test_reauth.py
--- google_auth-2.34.0.orig/tests/oauth2/test_reauth.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_reauth.py 2024-09-17 09:34:09.872609505 +0200
@@ -14,7 +14,7 @@
import copy
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_service_account.py google_auth-2.34.0/tests/oauth2/test_service_account.py
--- google_auth-2.34.0.orig/tests/oauth2/test_service_account.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_service_account.py 2024-09-17 09:34:09.869276171 +0200
@@ -16,7 +16,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_sts.py google_auth-2.34.0/tests/oauth2/test_sts.py
--- google_auth-2.34.0.orig/tests/oauth2/test_sts.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_sts.py 2024-09-17 09:34:09.882609507 +0200
@@ -16,7 +16,7 @@
import json
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_webauthn_handler_factory.py google_auth-2.34.0/tests/oauth2/test_webauthn_handler_factory.py
--- google_auth-2.34.0.orig/tests/oauth2/test_webauthn_handler_factory.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_webauthn_handler_factory.py 2024-09-17 09:34:09.889276175 +0200
@@ -1,4 +1,4 @@
-import mock
+from unittest import mock
import pytest # type: ignore
from google.oauth2 import webauthn_handler
diff -Nru google_auth-2.34.0.orig/tests/oauth2/test_webauthn_handler.py google_auth-2.34.0/tests/oauth2/test_webauthn_handler.py
--- google_auth-2.34.0.orig/tests/oauth2/test_webauthn_handler.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/oauth2/test_webauthn_handler.py 2024-09-17 09:34:09.862609503 +0200
@@ -1,7 +1,7 @@
import json
import struct
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.34.0.orig/tests/test_app_engine.py google_auth-2.34.0/tests/test_app_engine.py
--- google_auth-2.34.0.orig/tests/test_app_engine.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_app_engine.py 2024-09-17 09:34:09.832609496 +0200
@@ -14,7 +14,7 @@
import datetime
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import app_engine
diff -Nru google_auth-2.34.0.orig/tests/test_aws.py google_auth-2.34.0/tests/test_aws.py
--- google_auth-2.34.0.orig/tests/test_aws.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_aws.py 2024-09-17 09:34:09.982609530 +0200
@@ -18,7 +18,7 @@
import os
import urllib.parse
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers, external_account
diff -Nru google_auth-2.34.0.orig/tests/test__cloud_sdk.py google_auth-2.34.0/tests/test__cloud_sdk.py
--- google_auth-2.34.0.orig/tests/test__cloud_sdk.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test__cloud_sdk.py 2024-09-17 09:34:09.842609498 +0200
@@ -18,7 +18,7 @@
import subprocess
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _cloud_sdk
diff -Nru google_auth-2.34.0.orig/tests/test_credentials.py google_auth-2.34.0/tests/test_credentials.py
--- google_auth-2.34.0.orig/tests/test_credentials.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_credentials.py 2024-09-17 09:34:09.899276178 +0200
@@ -14,7 +14,7 @@
import datetime
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/test__default.py google_auth-2.34.0/tests/test__default.py
--- google_auth-2.34.0.orig/tests/test__default.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test__default.py 2024-09-17 09:34:09.902609512 +0200
@@ -15,7 +15,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _default
diff -Nru google_auth-2.34.0.orig/tests/test_downscoped.py google_auth-2.34.0/tests/test_downscoped.py
--- google_auth-2.34.0.orig/tests/test_downscoped.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_downscoped.py 2024-09-17 09:34:09.909276180 +0200
@@ -17,7 +17,7 @@
import json
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/test__exponential_backoff.py google_auth-2.34.0/tests/test__exponential_backoff.py
--- google_auth-2.34.0.orig/tests/test__exponential_backoff.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test__exponential_backoff.py 2024-09-17 09:34:09.779276151 +0200
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _exponential_backoff
diff -Nru google_auth-2.34.0.orig/tests/test_external_account_authorized_user.py google_auth-2.34.0/tests/test_external_account_authorized_user.py
--- google_auth-2.34.0.orig/tests/test_external_account_authorized_user.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_external_account_authorized_user.py 2024-09-17 09:34:09.905942846 +0200
@@ -16,7 +16,7 @@
import http.client as http_client
import json
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.34.0.orig/tests/test_external_account.py google_auth-2.34.0/tests/test_external_account.py
--- google_auth-2.34.0.orig/tests/test_external_account.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_external_account.py 2024-09-17 09:34:09.785942819 +0200
@@ -17,7 +17,7 @@
import json
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/test_iam.py google_auth-2.34.0/tests/test_iam.py
--- google_auth-2.34.0.orig/tests/test_iam.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_iam.py 2024-09-17 09:34:09.922609517 +0200
@@ -17,7 +17,7 @@
import http.client as http_client
import json
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/test_identity_pool.py google_auth-2.34.0/tests/test_identity_pool.py
--- google_auth-2.34.0.orig/tests/test_identity_pool.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_identity_pool.py 2024-09-17 09:34:09.925942850 +0200
@@ -18,7 +18,7 @@
import os
import urllib
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers, external_account
diff -Nru google_auth-2.34.0.orig/tests/test_impersonated_credentials.py google_auth-2.34.0/tests/test_impersonated_credentials.py
--- google_auth-2.34.0.orig/tests/test_impersonated_credentials.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_impersonated_credentials.py 2024-09-17 09:34:09.972609528 +0200
@@ -17,7 +17,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/test_jwt.py google_auth-2.34.0/tests/test_jwt.py
--- google_auth-2.34.0.orig/tests/test_jwt.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_jwt.py 2024-09-17 09:34:09.929276184 +0200
@@ -17,7 +17,7 @@
import json
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/test_metrics.py google_auth-2.34.0/tests/test_metrics.py
--- google_auth-2.34.0.orig/tests/test_metrics.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_metrics.py 2024-09-17 09:34:09.849276167 +0200
@@ -14,7 +14,7 @@
import platform
-import mock
+from unittest import mock
from google.auth import metrics
from google.auth import version
diff -Nru google_auth-2.34.0.orig/tests/test__oauth2client.py google_auth-2.34.0/tests/test__oauth2client.py
--- google_auth-2.34.0.orig/tests/test__oauth2client.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test__oauth2client.py 2024-09-17 09:34:09.835942830 +0200
@@ -17,7 +17,7 @@
import os
import sys
-import mock
+from unittest import mock
import pytest # type: ignore
try:
diff -Nru google_auth-2.34.0.orig/tests/test_pluggable.py google_auth-2.34.0/tests/test_pluggable.py
--- google_auth-2.34.0.orig/tests/test_pluggable.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test_pluggable.py 2024-09-17 09:34:09.975942862 +0200
@@ -16,7 +16,7 @@
import os
import subprocess
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.34.0.orig/tests/test__refresh_worker.py google_auth-2.34.0/tests/test__refresh_worker.py
--- google_auth-2.34.0.orig/tests/test__refresh_worker.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/test__refresh_worker.py 2024-09-17 09:34:09.955942857 +0200
@@ -17,7 +17,7 @@
import threading
import time
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _refresh_worker, credentials, exceptions
diff -Nru google_auth-2.34.0.orig/tests/transport/test__custom_tls_signer.py google_auth-2.34.0/tests/transport/test__custom_tls_signer.py
--- google_auth-2.34.0.orig/tests/transport/test__custom_tls_signer.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/transport/test__custom_tls_signer.py 2024-09-17 09:34:09.799276155 +0200
@@ -15,7 +15,7 @@
import ctypes
import os
-import mock
+from unittest import mock
import pytest # type: ignore
from requests.packages.urllib3.util.ssl_ import create_urllib3_context # type: ignore
import urllib3.contrib.pyopenssl # type: ignore
diff -Nru google_auth-2.34.0.orig/tests/transport/test_grpc.py google_auth-2.34.0/tests/transport/test_grpc.py
--- google_auth-2.34.0.orig/tests/transport/test_grpc.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/transport/test_grpc.py 2024-09-17 09:34:09.802609489 +0200
@@ -16,7 +16,7 @@
import os
import time
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import _helpers
diff -Nru google_auth-2.34.0.orig/tests/transport/test__mtls_helper.py google_auth-2.34.0/tests/transport/test__mtls_helper.py
--- google_auth-2.34.0.orig/tests/transport/test__mtls_helper.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/transport/test__mtls_helper.py 2024-09-17 09:34:09.812609492 +0200
@@ -15,7 +15,7 @@
import os
import re
-import mock
+from unittest import mock
from OpenSSL import crypto
import pytest # type: ignore
diff -Nru google_auth-2.34.0.orig/tests/transport/test_mtls.py google_auth-2.34.0/tests/transport/test_mtls.py
--- google_auth-2.34.0.orig/tests/transport/test_mtls.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/transport/test_mtls.py 2024-09-17 09:34:09.815942826 +0200
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-import mock
+from unittest import mock
import pytest # type: ignore
from google.auth import exceptions
diff -Nru google_auth-2.34.0.orig/tests/transport/test_requests.py google_auth-2.34.0/tests/transport/test_requests.py
--- google_auth-2.34.0.orig/tests/transport/test_requests.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/transport/test_requests.py 2024-09-17 09:34:09.819276160 +0200
@@ -19,7 +19,7 @@
import sys
import freezegun
-import mock
+from unittest import mock
import OpenSSL
import pytest # type: ignore
import requests
diff -Nru google_auth-2.34.0.orig/tests/transport/test_urllib3.py google_auth-2.34.0/tests/transport/test_urllib3.py
--- google_auth-2.34.0.orig/tests/transport/test_urllib3.py 2024-08-19 00:51:18.000000000 +0200
+++ google_auth-2.34.0/tests/transport/test_urllib3.py 2024-09-17 09:34:09.795942821 +0200
@@ -16,7 +16,7 @@
import os
import sys
-import mock
+from unittest import mock
import OpenSSL
import pytest # type: ignore
import urllib3 # type: ignore