Skip to content

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

fix(test): correct test assertions for credential operations

Steven Enamakel614f4eb36f86
diff --git a/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs b/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
index c93bba0941..a033c668ea 100644
--- a/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/ops_credential_tests.rs
@@ -555,7 +555,6 @@ async fn clear_credential_without_a_kind_removes_everything() {
);
}
-// ── authed routes keep the SESSION_EXPIRED sentinel ───────────
// ── set_credential (local session) ─────────────────────────────
diff --git a/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs b/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs
index 1b6ea20084..816bef6c00 100644
--- a/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/ops_provider_oauth_tests.rs
@@ -39,7 +39,6 @@ async fn auth_get_session_token_json_returns_null_when_empty() {
assert!(out.value["token"].is_null());
}
-// ── auth_create_channel_link_token (validation) ───────────────
// ── store_provider_credentials (validation + store path) ──────
diff --git a/crates/openhuman-core/src/security/credentials/schemas_tests.rs b/crates/openhuman-core/src/security/credentials/schemas_tests.rs
index ec2dbf6abe..40510b308a 100644
--- a/crates/openhuman-core/src/security/credentials/schemas_tests.rs
+++ b/crates/openhuman-core/src/security/credentials/schemas_tests.rs
@@ -51,15 +51,10 @@ fn every_known_schema_key_returns_a_non_unknown_schema() {
"auth_clear_credential",
"auth_get_state",
"auth_get_session_token",
- "auth_create_channel_link_token",
"auth_store_provider_credentials",
"auth_remove_provider_credentials",
"auth_list_provider_credentials",
- "auth_oauth_connect",
- "auth_oauth_list_integrations",
- "auth_oauth_fetch_integration_tokens",
"auth_oauth_fetch_client_key",
- "auth_oauth_revoke_integration",
];
for k in keys {
let s = schemas(k);
@@ -80,13 +75,6 @@ fn list_provider_credentials_schema_has_optional_provider_filter() {
assert!(!provider.unwrap().required);
}
-#[test]
-fn oauth_connect_schema_requires_provider() {
- let s = schemas("auth_oauth_connect");
- let provider = s.inputs.iter().find(|f| f.name == "provider").unwrap();
- assert!(provider.required);
-}
-
#[test]
fn set_credential_schema_requires_token_and_advertises_kind_user_fields() {
let s = schemas("auth_set_credential");