Skip to content

Commit be5a7db

Browse files
committed
feat: Normalize project and location in connection IDs
1 parent 5663d2a commit be5a7db

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/system/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,16 +72,16 @@ def _hash_digest_file(hasher, filepath):
7272

7373
@pytest.fixture(scope="session")
7474
def normalize_connection_id():
75-
"""Normalizes the connection ID by casefolding only the LOCATION component.
75+
"""Normalizes the connection ID by casefolding the PROJECT and LOCATION components.
7676
7777
Connection format: PROJECT.LOCATION.CONNECTION_NAME
78-
Only LOCATION is case-insensitive; PROJECT and CONNECTION_NAME must be lowercase.
78+
PROJECT and LOCATION are case-insensitive; CONNECTION_NAME must be lowercase.
7979
"""
8080

8181
def normalize(connection_id: str) -> str:
8282
parts = connection_id.split(".")
8383
if len(parts) == 3:
84-
return f"{parts[0]}.{parts[1].casefold()}.{parts[2]}"
84+
return f"{parts[0].casefold()}.{parts[1].casefold()}.{parts[2]}"
8585
return connection_id # Return unchanged if invalid format
8686

8787
return normalize

0 commit comments

Comments
 (0)