Skip to content

Commit fcc3780

Browse files
committed
✅ Section I9: Constants finalized + Phase 1 complete
1 parent c9ee7a8 commit fcc3780

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tests/test_identity_pool.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def from_info(cls, info):
3535
identity_pool.Credentials = DummyCredentials
3636
DEFAULT_UNIVERSE_DOMAIN = "googleapis.com"
3737

38-
# --- Constants ---
38+
# --- Constants (I9) ---
3939
AUDIENCE = "//iam.googleapis.com/projects/123456/locations/global/workloadIdentityPools/POOL_ID/providers/PROVIDER_ID"
4040
SUBJECT_TOKEN_TYPE = "urn:ietf:params:oauth:token-type:jwt"
4141
TOKEN_URL = "https://sts.googleapis.com/v1/token"
@@ -334,3 +334,10 @@ def dummy_supplier():
334334

335335
with pytest.raises(ValueError, match="Unable to parse subject_token"):
336336
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

0 commit comments

Comments
 (0)