From be5a7db5206a4af5bbdd61628e9fafc2faf9f127 Mon Sep 17 00:00:00 2001 From: Shuowei Li Date: Wed, 5 Nov 2025 22:10:29 +0000 Subject: [PATCH] feat: Normalize project and location in connection IDs --- tests/system/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/system/conftest.py b/tests/system/conftest.py index 2f08a695e9..769590a3c8 100644 --- a/tests/system/conftest.py +++ b/tests/system/conftest.py @@ -72,16 +72,16 @@ def _hash_digest_file(hasher, filepath): @pytest.fixture(scope="session") def normalize_connection_id(): - """Normalizes the connection ID by casefolding only the LOCATION component. + """Normalizes the connection ID by casefolding the PROJECT and LOCATION components. Connection format: PROJECT.LOCATION.CONNECTION_NAME - Only LOCATION is case-insensitive; PROJECT and CONNECTION_NAME must be lowercase. + PROJECT and LOCATION are case-insensitive; CONNECTION_NAME must be lowercase. """ def normalize(connection_id: str) -> str: parts = connection_id.split(".") if len(parts) == 3: - return f"{parts[0]}.{parts[1].casefold()}.{parts[2]}" + return f"{parts[0].casefold()}.{parts[1].casefold()}.{parts[2]}" return connection_id # Return unchanged if invalid format return normalize