Skip to content

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

chore: remove obsolete test file for secret scrubbing

Steven Enamakelf071209a7071
diff --git a/crates/openhuman-core/src/main_tests.rs b/crates/openhuman-core/src/main_tests.rs
deleted file mode 100644
index 31a564137c..0000000000
--- a/crates/openhuman-core/src/main_tests.rs
+++ /dev/null
@@ -1,55 +0,0 @@
-use super::*;
-
-#[test]
-fn scrubs_bearer_token() {
- assert_eq!(
- scrub_secrets("Authorization: Bearer abc123xyz"),
- "Authorization: Bearer [REDACTED]"
- );
-}
-
-#[test]
-fn scrubs_api_key() {
- assert_eq!(scrub_secrets("api_key=sk-abc123"), "api_key=[REDACTED]");
-}
-
-#[test]
-fn scrubs_anthropic_key() {
- assert_eq!(
- scrub_secrets("key: sk-ant-api03-abcdefghijklmnop"),
- "key: [REDACTED]"
- );
-}
-
-#[test]
-fn scrubs_openai_admin_key() {
- assert_eq!(
- scrub_secrets("key: sk-admin-abcdefghijkl"),
- "key: [REDACTED]"
- );
-}
-
-#[test]
-fn scrubs_openai_proj_key() {
- assert_eq!(
- scrub_secrets("key: sk-proj-abcdefghijkl"),
- "key: [REDACTED]"
- );
-}
-
-#[test]
-fn scrubs_generic_sk_key() {
- assert_eq!(scrub_secrets("sk-abcdefghijklmnopqrstuvwx"), "[REDACTED]");
-}
-
-#[test]
-fn token_word_boundary_no_false_positive() {
- let input = "cancellation_token=abc123 next_page_token=xyz789";
- let result = scrub_secrets(input);
- assert_eq!(result, input, "should not scrub compound token fields");
-}
-
-#[test]
-fn standalone_token_is_scrubbed() {
- assert_eq!(scrub_secrets("token=secret_value_here"), "token=[REDACTED]");
-}