diff options
author | arithmetic1728 <58957152+arithmetic1728@users.noreply.github.com> | 2020-03-27 14:34:13 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-27 14:34:13 -0700 |
commit | 772dac6a6512230d32cb0dfae65a1a6aa9015049 (patch) | |
tree | 2a94e902cfeed0a925de4eb60e8b75cc9089324e /system_tests | |
parent | f79cf9a3918c48b331a29d0f2403c7ea9e408cc0 (diff) | |
download | google-auth-library-python-772dac6a6512230d32cb0dfae65a1a6aa9015049.tar.gz |
feat: add access token credentials (#476)
feat: add access token credentials
Diffstat (limited to 'system_tests')
-rw-r--r-- | system_tests/test_mtls_http.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/system_tests/test_mtls_http.py b/system_tests/test_mtls_http.py index e7ea0b2..1fd8031 100644 --- a/system_tests/test_mtls_http.py +++ b/system_tests/test_mtls_http.py @@ -14,6 +14,7 @@ import json from os import path +import time import google.auth import google.auth.credentials @@ -42,6 +43,9 @@ def test_requests(): # supposed to be created. assert authed_session.is_mtls == check_context_aware_metadata() + # Sleep 1 second to avoid 503 error. + time.sleep(1) + if authed_session.is_mtls: response = authed_session.get(MTLS_ENDPOINT.format(project_id)) else: @@ -63,6 +67,9 @@ def test_urllib3(): # supposed to be created. assert is_mtls == check_context_aware_metadata() + # Sleep 1 second to avoid 503 error. + time.sleep(1) + if is_mtls: response = authed_http.request("GET", MTLS_ENDPOINT.format(project_id)) else: |