File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -35,7 +35,7 @@ def from_info(cls, info):
35
35
identity_pool .Credentials = DummyCredentials
36
36
DEFAULT_UNIVERSE_DOMAIN = "googleapis.com"
37
37
38
- # --- Constants ---
38
+ # --- Constants (I9) ---
39
39
AUDIENCE = "//iam.googleapis.com/projects/123456/locations/global/workloadIdentityPools/POOL_ID/providers/PROVIDER_ID"
40
40
SUBJECT_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:jwt"
41
41
TOKEN_URL = "https://sts.googleapis.com/v1/token"
@@ -334,3 +334,10 @@ def dummy_supplier():
334
334
335
335
with pytest .raises (ValueError , match = "Unable to parse subject_token" ):
336
336
raise ValueError ("Unable to parse subject_token" ) # Simulate failure
337
+
338
+ # --- Section I8: Utility / Metadata Assertions ---
339
+
340
+ def test_quota_project_passed_through (make_credentials ):
341
+ quota_id = "custom-quota-project"
342
+ credentials = make_credentials (quota_project_id = quota_id )
343
+ assert credentials .init_kwargs ["quota_project_id" ] == quota_id
You can’t perform that action at this time.
0 commit comments