Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

test(config): update expected error messages for oauth methods

Steven Enamakel76f49a98b58a
diff --git a/tests/config_auth_app_state_connectivity_e2e.rs b/tests/config_auth_app_state_connectivity_e2e.rs
index 3a5fa13c5a..65b53011cc 100644
--- a/tests/config_auth_app_state_connectivity_e2e.rs
+++ b/tests/config_auth_app_state_connectivity_e2e.rs
@@ -3529,24 +3529,27 @@ async fn auth_credentials_controller_paths_round_trip_and_validate_errors() {
"unsupported channel",
);
+ // `auth_oauth_*` (all but `fetch_client_key`) are served by
+ // `openhuman-tinyhumans` now: validation first, then the core's
+ // credential resolution, whose missing-session wording they report.
for (id, method, params, needle) in [
(
20_006,
"openhuman.auth_oauth_connect",
json!({ "provider": "github" }),
- "session JWT required",
+ "no backend session token",
),
(
20_007,
"openhuman.auth_oauth_list_integrations",
json!({}),
- "session JWT required",
+ "no backend session token",
),
(
20_008,
"openhuman.auth_oauth_fetch_integration_tokens",
json!({ "integrationId": "abc", "key": "secret" }),
- "session JWT required",
+ "integrationId must be a 24-char hex id",
),
(
20_009,
@@ -3558,7 +3561,7 @@ async fn auth_credentials_controller_paths_round_trip_and_validate_errors() {
20_010,
"openhuman.auth_oauth_revoke_integration",
json!({ "integrationId": "abc" }),
- "session JWT required",
+ "no backend session token",
),
] {
let response = rpc(&harness.rpc_base, id, method, params).await;