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(cron): seed persistent storage and api key in scheduler fixtures
Steven Enamakel883dd8e64dec
diff --git a/crates/openhuman-core/src/cron/scheduler_host_agent_tests.rs b/crates/openhuman-core/src/cron/scheduler_host_agent_tests.rsindex 484d3268b2..6637745c57 100644--- a/crates/openhuman-core/src/cron/scheduler_host_agent_tests.rs+++ b/crates/openhuman-core/src/cron/scheduler_host_agent_tests.rs@@ -65,12 +65,16 @@ impl HostAgentResolver for Host {fn config(tmp: &TempDir) -> Config {let workspace = tmp.path().join("workspace");std::fs::create_dir_all(&workspace).unwrap();- Config {+ crate::storage::local::use_persistent_default_for_test(&workspace);+ let config = Config {workspace_dir: workspace.clone(),action_dir: workspace,config_path: tmp.path().join("config.toml"),..Config::default()- }+ };+ crate::security::credentials::api_key::store_api_key(&config, "cron-host-test-key")+ .expect("store the managed inference fixture credential");+ config}fn agent_job(agent_id: &str) -> CronJob {diff --git a/crates/openhuman-core/src/cron/scheduler_tests.rs b/crates/openhuman-core/src/cron/scheduler_tests.rsindex 7d92b20e5a..691e7bc26a 100644--- a/crates/openhuman-core/src/cron/scheduler_tests.rs+++ b/crates/openhuman-core/src/cron/scheduler_tests.rs@@ -24,6 +24,9 @@ async fn test_config(tmp: &TempDir) -> Config {tokio::fs::create_dir_all(&config.workspace_dir).await.unwrap();+ crate::storage::local::use_persistent_default_for_test(&config.workspace_dir);+ crate::security::credentials::api_key::store_api_key(&config, "cron-scheduler-test-key")+ .expect("store the managed inference fixture credential");config}