Skip to content

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

test(openhuman-rpc): add proptest dev-dependency and gateway test module

Steven Enamakeldfa50a6590fd
diff --git a/crates/openhuman-rpc/Cargo.toml b/crates/openhuman-rpc/Cargo.toml
index 10b10fcce6..2a274d11ce 100644
--- a/crates/openhuman-rpc/Cargo.toml
+++ b/crates/openhuman-rpc/Cargo.toml
@@ -106,6 +106,9 @@ tinyagents-session = { path = "../../vendor/tinyagents/crates/tinyagents-session
tinyagents-harness = { path = "../../vendor/tinyagents/crates/tinyagents-harness", default-features = false, optional = true }
[dev-dependencies]
+# Property tests for the SaaS gateway's header handling; same spelling as the
+# core's dev-dependency.
+proptest = "1"
reqwest = { version = "0.12", default-features = false, features = ["rustls-tls"] }
sentry = { version = "0.47.0", default-features = false, features = ["test"] }
tempfile = "3"
diff --git a/crates/openhuman-rpc/src/server/saas_gateway.rs b/crates/openhuman-rpc/src/server/saas_gateway.rs
index 973a2924d2..d226317699 100644
--- a/crates/openhuman-rpc/src/server/saas_gateway.rs
+++ b/crates/openhuman-rpc/src/server/saas_gateway.rs
@@ -150,3 +150,7 @@ pub(crate) fn decide(
#[cfg(test)]
#[path = "saas_gateway_tests.rs"]
mod tests;
+
+#[cfg(test)]
+#[path = "saas_gateway_proptest_tests.rs"]
+mod proptest_tests;