Skip to content

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

test(modules): set product identity in endpoint routing tests

Steven Enamakelc55de9513d71
diff --git a/crates/openhuman-core/src/modules/computer_config_tests.rs b/crates/openhuman-core/src/modules/computer_config_tests.rs
index 70a8e8223a..e5b3db3cd0 100644
--- a/crates/openhuman-core/src/modules/computer_config_tests.rs
+++ b/crates/openhuman-core/src/modules/computer_config_tests.rs
@@ -27,6 +27,7 @@ fn store(config: &Config, slug: &str, key: &str) {
fn signed_in_host_routes_jev_and_planner_through_tinyhumans() {
let dir = tempfile::tempdir().unwrap();
let mut config = config_in(dir.path());
+ config.resolved_endpoints.product_identity = Some("openhuman-test".into());
config.computer.rescue_model = Some("openai/gpt-6-luna-pro".into());
config.computer.planner_model = Some("anthropic/claude-sonnet-5".into());
api_key::store_api_key(&config, "th_test_backend").unwrap();
diff --git a/crates/openhuman-core/src/modules/desktop_tests.rs b/crates/openhuman-core/src/modules/desktop_tests.rs
index 093d108a68..3aa3431022 100644
--- a/crates/openhuman-core/src/modules/desktop_tests.rs
+++ b/crates/openhuman-core/src/modules/desktop_tests.rs
@@ -24,7 +24,8 @@ fn config_in(dir: &std::path::Path) -> Config {
#[test]
fn backend_key_is_selected_ahead_of_direct_openrouter_and_rotates_privately() {
let dir = tempfile::tempdir().expect("tempdir");
- let config = config_in(dir.path());
+ let mut config = config_in(dir.path());
+ config.resolved_endpoints.product_identity = Some("openhuman-test".into());
AuthService::from_config(&config)
.store_provider_token(
"provider:openrouter",