The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test(credentials): align session test with resolved control plane gate
Steven Enamakel74f536ff8307
diff --git a/crates/openhuman-core/src/security/credentials/session_support_tests.rs b/crates/openhuman-core/src/security/credentials/session_support_tests.rsindex 80b937dd57..d9ab768d33 100644--- a/crates/openhuman-core/src/security/credentials/session_support_tests.rs+++ b/crates/openhuman-core/src/security/credentials/session_support_tests.rs@@ -520,7 +520,7 @@ fn direct_backend_credential_skips_without_a_usable_credential() {#[test]fn direct_backend_credential_returns_a_live_session() {let tmp = TempDir::new().unwrap();- let config = test_config(&tmp);+ let mut config = test_config(&tmp);AuthService::from_config(&config).store_provider_token(APP_SESSION_PROVIDER,@@ -530,8 +530,8 @@ fn direct_backend_credential_returns_a_live_session() {true,).unwrap();- // Unit tests resolve the plain test transport, so the transport gate passes.- assert!(crate::backend::transport::is_installed());+ // The gate is "a control plane was resolved onto the config".+ config.resolved_endpoints.control_plane_url = Some("https://api.example.test".into());assert_eq!(direct_backend_credential(&config, "test"),Some(BackendCredential::Session("raw-session-token".into()))