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
fix(test): remove unused test files
Steven Enamakel135133d68f44
diff --git a/crates/openhuman-core/src/backend/transport/transport_tests.rs b/crates/openhuman-core/src/backend/transport/transport_tests.rsindex c84f74e8b7..cbe70a8524 100644--- a/crates/openhuman-core/src/backend/transport/transport_tests.rs+++ b/crates/openhuman-core/src/backend/transport/transport_tests.rs@@ -264,6 +264,15 @@ async fn backend_client_reports_unavailable_when_transport_returns_unavailable()fn http_client(&self, _profile: TransportProfile) -> reqwest::Client {reqwest::Client::new()}+ fn base_url(&self, configured: Option<&str>, _purpose: BaseUrlPurpose) -> String {+ configured.unwrap_or_default().to_string()+ }+ fn product_identity(&self) -> String {+ "absent".to_string()+ }+ fn attribution_headers(&self) -> reqwest::header::HeaderMap {+ reqwest::header::HeaderMap::new()+ }fn name(&self) -> &'static str {"absent"}diff --git a/crates/openhuman-core/src/integrations/client/budget_gate_tests.rs b/crates/openhuman-core/src/integrations/client/budget_gate_tests.rsindex ed32a58e16..2d33a5c2bc 100644--- a/crates/openhuman-core/src/integrations/client/budget_gate_tests.rs+++ b/crates/openhuman-core/src/integrations/client/budget_gate_tests.rs@@ -317,7 +317,7 @@ async fn probe_without_a_credential_fails_before_the_backoff_and_any_request() {);assert!(!USAGE_FAILURE_CACHE.is_fresh(- &effective_backend_api_url(&config.api_url),+ &crate::backend::base_url(&config.api_url).unwrap(),Instant::now(),USAGE_FAILURE_BACKOFF),diff --git a/crates/openhuman-core/src/integrations/client_error_propagation_tests.rs b/crates/openhuman-core/src/integrations/client_error_propagation_tests.rsindex 8a5faac35a..d557e35c85 100644--- a/crates/openhuman-core/src/integrations/client_error_propagation_tests.rs+++ b/crates/openhuman-core/src/integrations/client_error_propagation_tests.rs@@ -254,13 +254,13 @@ async fn verb_methods_never_expose_admin_or_webhook_routes() {}#[tokio::test]-async fn integration_requests_carry_the_default_product_identity() {- let _guard = crate::api::product::product_identity_test_lock();- let seen = product_identity_seen_by_backend(None).await;- let expected = Some(crate::api::product::DEFAULT_PRODUCT_IDENTITY);+async fn integration_requests_carry_the_host_attribution() {+ // The installed transport (here the `cfg(test)` plain one) stamps the+ // host's product identity; which identity it is belongs to the host.+ let seen = product_identity_seen_by_backend().await;assert_eq!(seen.sdk.as_deref(),- expected,+ Some(crate::backend::transport::plain::TEST_PRODUCT_IDENTITY),"agent-integration traffic must be attributed like every other backend call");assert_eq!(@@ -271,16 +271,6 @@ async fn integration_requests_carry_the_default_product_identity() {);}-#[tokio::test]-async fn integration_requests_carry_an_overridden_product_identity() {- let _guard = crate::api::product::product_identity_test_lock();- let seen = product_identity_seen_by_backend(Some("opencompany")).await;- assert_eq!(seen.sdk.as_deref(), Some("opencompany"));- // An override must not leak to storage either — same redirect reasoning as- // the default case above.- assert_eq!(seen.download.as_deref(), None);-}-#[tokio::test]async fn post_400_propagates_backend_error_envelope_message() {// Mirror the real backend BadRequestError shape fromdiff --git a/crates/openhuman-core/src/integrations/client_tests.rs b/crates/openhuman-core/src/integrations/client_tests.rsindex bf96fb8e82..c21c8af7e7 100644--- a/crates/openhuman-core/src/integrations/client_tests.rs+++ b/crates/openhuman-core/src/integrations/client_tests.rs@@ -45,11 +45,8 @@ struct ProductIdentitySeen {download: Option<String>,}-async fn product_identity_seen_by_backend(identity: Option<&str>) -> ProductIdentitySeen {- use crate::api::product::{- reset_product_identity_for_test, set_product_identity, ProductIdentity,- PRODUCT_IDENTITY_HEADER,- };+async fn product_identity_seen_by_backend() -> ProductIdentitySeen {+ use crate::backend::transport::plain::TEST_PRODUCT_HEADER as PRODUCT_IDENTITY_HEADER;fn sink_header(sink: &Arc<std::sync::Mutex<Option<String>>>, headers: &axum::http::HeaderMap) {*sink.lock().unwrap() = headers@@ -87,11 +84,6 @@ async fn product_identity_seen_by_backend(identity: Option<&str>) -> ProductIden);let base = start_mock_backend(app).await;- reset_product_identity_for_test();- if let Some(identity) = identity {- set_product_identity(ProductIdentity::new(identity).unwrap());- }-let client = client_for(base);let sdk_result = client.post::<serde_json::Value>("/agent-integrations/composio/execute", &json!({}))@@ -100,7 +92,6 @@ async fn product_identity_seen_by_backend(identity: Option<&str>) -> ProductIden.get_bytes("/agent-integrations/file-storage/files/f1/download").await;- reset_product_identity_for_test();sdk_result.expect("mock backend returns a success envelope");download_result.expect("mock backend returns file bytes");