Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit 7f1aed1

Browse files
fix: make system tests resilient and use default value for context_aware metadata flag
Signed-off-by: Radhika Agrawal <agrawalradhika@google.com>
1 parent fce3c71 commit 7f1aed1

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

google/auth/transport/mtls.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
from google.auth.transport import _mtls_helper
2121

2222

23-
def has_default_client_cert_source(include_context_aware):
23+
def has_default_client_cert_source(include_context_aware=True):
2424
"""Check if default client SSL credentials exists on the device.
2525
2626
Args:

system_tests/system_tests_sync/test_service_account.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,12 @@ def test_refresh_success(http_request, credentials, token_info):
4141

4242
assert info["email"] == credentials.service_account_email
4343
info_scopes = _helpers.string_to_scopes(info["scope"])
44-
assert set(info_scopes) == set(
44+
assert set(info_scopes).issubset(set(
4545
[
4646
"https://www.googleapis.com/auth/userinfo.email",
4747
"https://www.googleapis.com/auth/userinfo.profile",
4848
]
49-
)
49+
))
5050

5151
def test_iam_signer(http_request, credentials):
5252
credentials = credentials.with_scopes(

0 commit comments

Comments
 (0)