Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

test(integration): check SSO sign-in removal without reaching the public internet (#47409)

yuneng-jiangb110c8cfa742
diff --git a/tests/integration/configuration/test_effective_settings.py b/tests/integration/configuration/test_effective_settings.py
index acdaacfcfb5..07477f1f048 100644
--- a/tests/integration/configuration/test_effective_settings.py
+++ b/tests/integration/configuration/test_effective_settings.py
@@ -1547,8 +1547,8 @@ def test_an_sso_client_removed_from_db_environment_variables_stops_sign_in_on_ev
"DATABASE_URL_READ_REPLICA",
"GENERIC_CLIENT_ID",
"GOOGLE_CLIENT_ID",
- "GOOGLE_CLIENT_SECRET",
"MICROSOFT_CLIENT_ID",
+ "MICROSOFT_CLIENT_SECRET",
"PROXY_BASE_URL",
)
with (
@@ -1567,7 +1567,7 @@ def test_an_sso_client_removed_from_db_environment_variables_stops_sign_in_on_ev
response: Final = first.request(
"POST",
"/config/update",
- {"environment_variables": {"GOOGLE_CLIENT_ID": client_id, "GOOGLE_CLIENT_SECRET": secret}},
+ {"environment_variables": {"MICROSOFT_CLIENT_ID": client_id, "MICROSOFT_CLIENT_SECRET": secret}},
)
assert response.status_code == 200, response.text
@@ -1584,7 +1584,7 @@ def test_an_sso_client_removed_from_db_environment_variables_stops_sign_in_on_ev
moved: Final = first.request(
"PATCH",
"/update/sso_settings",
- {"google_client_id": sso_table_client, "google_client_secret": "sso-table-secret"},
+ {"microsoft_client_id": sso_table_client, "microsoft_client_secret": "sso-table-secret"},
)
assert moved.status_code == 200, moved.text
eventually(sign_in_clients, lambda clients: clients == (sso_table_client,) * 2, seconds=30)