From 43d7e6e991b340f16dcdafd8dbc83406804e020b Mon Sep 17 00:00:00 2001 From: David Osipov Date: Fri, 20 Mar 2026 22:55:19 +0400 Subject: [PATCH] moved tests to subdirs --- src/config/load.rs | 4 +-- .../{ => tests}/load_idle_policy_tests.rs | 0 src/config/{ => tests}/load_security_tests.rs | 0 src/main.rs | 1 + src/protocol/constants.rs | 2 +- .../{ => tests}/tls_adversarial_tests.rs | 0 .../{ => tests}/tls_fuzz_security_tests.rs | 0 .../{ => tests}/tls_security_tests.rs | 0 .../tls_size_constants_security_tests.rs | 0 src/protocol/tls.rs | 6 ++--- src/proxy/client.rs | 26 +++++++++---------- src/proxy/direct_relay.rs | 2 +- src/proxy/handshake.rs | 6 ++--- src/proxy/masking.rs | 4 +-- src/proxy/middle_relay.rs | 4 +-- src/proxy/relay.rs | 4 +-- src/proxy/route_mode.rs | 2 +- .../{ => tests}/client_adversarial_tests.rs | 0 .../client_masking_blackhat_campaign_tests.rs | 0 .../client_masking_budget_security_tests.rs | 0 ...ient_masking_diagnostics_security_tests.rs | 0 .../client_masking_hard_adversarial_tests.rs | 0 ...ent_masking_redteam_expected_fail_tests.rs | 0 ..._masking_shape_hardening_security_tests.rs | 0 ...client_masking_stress_adversarial_tests.rs | 0 .../{ => tests}/client_security_tests.rs | 0 ...client_timing_profile_adversarial_tests.rs | 0 ...ent_tls_clienthello_size_security_tests.rs | 0 ...lienthello_truncation_adversarial_tests.rs | 0 ...ent_tls_mtproto_fallback_security_tests.rs | 0 .../direct_relay_security_tests.rs | 0 .../handshake_adversarial_tests.rs | 0 .../handshake_fuzz_security_tests.rs | 0 .../{ => tests}/handshake_security_tests.rs | 0 .../{ => tests}/masking_adversarial_tests.rs | 0 .../{ => tests}/masking_security_tests.rs | 0 ...middle_relay_idle_policy_security_tests.rs | 0 .../middle_relay_security_tests.rs | 0 .../{ => tests}/relay_adversarial_tests.rs | 0 src/proxy/{ => tests}/relay_security_tests.rs | 0 .../{ => tests}/route_mode_security_tests.rs | 0 src/stats/mod.rs | 4 +-- .../connection_lease_security_tests.rs | 0 .../replay_checker_security_tests.rs | 0 .../ip_tracker_regression_tests.rs | 0 src/tls_front/emulator.rs | 2 +- .../{ => tests}/emulator_security_tests.rs | 0 src/transport/middle_proxy/mod.rs | 6 +++++ .../{ => tests}/health_adversarial_tests.rs | 0 .../{ => tests}/health_integration_tests.rs | 0 .../{ => tests}/health_regression_tests.rs | 0 .../{ => tests}/pool_refill_security_tests.rs | 0 .../{ => tests}/pool_writer_security_tests.rs | 0 .../{ => tests}/send_adversarial_tests.rs | 0 54 files changed, 40 insertions(+), 33 deletions(-) rename src/config/{ => tests}/load_idle_policy_tests.rs (100%) rename src/config/{ => tests}/load_security_tests.rs (100%) rename src/protocol/{ => tests}/tls_adversarial_tests.rs (100%) rename src/protocol/{ => tests}/tls_fuzz_security_tests.rs (100%) rename src/protocol/{ => tests}/tls_security_tests.rs (100%) rename src/protocol/{ => tests}/tls_size_constants_security_tests.rs (100%) rename src/proxy/{ => tests}/client_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_blackhat_campaign_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_budget_security_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_diagnostics_security_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_hard_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_redteam_expected_fail_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_shape_hardening_security_tests.rs (100%) rename src/proxy/{ => tests}/client_masking_stress_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/client_security_tests.rs (100%) rename src/proxy/{ => tests}/client_timing_profile_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/client_tls_clienthello_size_security_tests.rs (100%) rename src/proxy/{ => tests}/client_tls_clienthello_truncation_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/client_tls_mtproto_fallback_security_tests.rs (100%) rename src/proxy/{ => tests}/direct_relay_security_tests.rs (100%) rename src/proxy/{ => tests}/handshake_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/handshake_fuzz_security_tests.rs (100%) rename src/proxy/{ => tests}/handshake_security_tests.rs (100%) rename src/proxy/{ => tests}/masking_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/masking_security_tests.rs (100%) rename src/proxy/{ => tests}/middle_relay_idle_policy_security_tests.rs (100%) rename src/proxy/{ => tests}/middle_relay_security_tests.rs (100%) rename src/proxy/{ => tests}/relay_adversarial_tests.rs (100%) rename src/proxy/{ => tests}/relay_security_tests.rs (100%) rename src/proxy/{ => tests}/route_mode_security_tests.rs (100%) rename src/stats/{ => tests}/connection_lease_security_tests.rs (100%) rename src/stats/{ => tests}/replay_checker_security_tests.rs (100%) rename src/{ => tests}/ip_tracker_regression_tests.rs (100%) rename src/tls_front/{ => tests}/emulator_security_tests.rs (100%) rename src/transport/middle_proxy/{ => tests}/health_adversarial_tests.rs (100%) rename src/transport/middle_proxy/{ => tests}/health_integration_tests.rs (100%) rename src/transport/middle_proxy/{ => tests}/health_regression_tests.rs (100%) rename src/transport/middle_proxy/{ => tests}/pool_refill_security_tests.rs (100%) rename src/transport/middle_proxy/{ => tests}/pool_writer_security_tests.rs (100%) rename src/transport/middle_proxy/{ => tests}/send_adversarial_tests.rs (100%) diff --git a/src/config/load.rs b/src/config/load.rs index ae43f7a..dbafbcc 100644 --- a/src/config/load.rs +++ b/src/config/load.rs @@ -992,11 +992,11 @@ impl ProxyConfig { } #[cfg(test)] -#[path = "load_idle_policy_tests.rs"] +#[path = "tests/load_idle_policy_tests.rs"] mod load_idle_policy_tests; #[cfg(test)] -#[path = "load_security_tests.rs"] +#[path = "tests/load_security_tests.rs"] mod load_security_tests; #[cfg(test)] diff --git a/src/config/load_idle_policy_tests.rs b/src/config/tests/load_idle_policy_tests.rs similarity index 100% rename from src/config/load_idle_policy_tests.rs rename to src/config/tests/load_idle_policy_tests.rs diff --git a/src/config/load_security_tests.rs b/src/config/tests/load_security_tests.rs similarity index 100% rename from src/config/load_security_tests.rs rename to src/config/tests/load_security_tests.rs diff --git a/src/main.rs b/src/main.rs index 2cfbe28..16a8bdf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -7,6 +7,7 @@ mod crypto; mod error; mod ip_tracker; #[cfg(test)] +#[path = "tests/ip_tracker_regression_tests.rs"] mod ip_tracker_regression_tests; mod maestro; mod metrics; diff --git a/src/protocol/constants.rs b/src/protocol/constants.rs index 819678c..8130add 100644 --- a/src/protocol/constants.rs +++ b/src/protocol/constants.rs @@ -339,7 +339,7 @@ pub mod rpc_flags { pub const ME_HANDSHAKE_TIMEOUT_SECS: u64 = 10; #[cfg(test)] - #[path = "tls_size_constants_security_tests.rs"] + #[path = "tests/tls_size_constants_security_tests.rs"] mod tls_size_constants_security_tests; #[cfg(test)] diff --git a/src/protocol/tls_adversarial_tests.rs b/src/protocol/tests/tls_adversarial_tests.rs similarity index 100% rename from src/protocol/tls_adversarial_tests.rs rename to src/protocol/tests/tls_adversarial_tests.rs diff --git a/src/protocol/tls_fuzz_security_tests.rs b/src/protocol/tests/tls_fuzz_security_tests.rs similarity index 100% rename from src/protocol/tls_fuzz_security_tests.rs rename to src/protocol/tests/tls_fuzz_security_tests.rs diff --git a/src/protocol/tls_security_tests.rs b/src/protocol/tests/tls_security_tests.rs similarity index 100% rename from src/protocol/tls_security_tests.rs rename to src/protocol/tests/tls_security_tests.rs diff --git a/src/protocol/tls_size_constants_security_tests.rs b/src/protocol/tests/tls_size_constants_security_tests.rs similarity index 100% rename from src/protocol/tls_size_constants_security_tests.rs rename to src/protocol/tests/tls_size_constants_security_tests.rs diff --git a/src/protocol/tls.rs b/src/protocol/tls.rs index cca3cc9..dc15a1e 100644 --- a/src/protocol/tls.rs +++ b/src/protocol/tls.rs @@ -814,13 +814,13 @@ mod compile_time_security_checks { // ============= Security-focused regression tests ============= #[cfg(test)] -#[path = "tls_security_tests.rs"] +#[path = "tests/tls_security_tests.rs"] mod security_tests; #[cfg(test)] -#[path = "tls_adversarial_tests.rs"] +#[path = "tests/tls_adversarial_tests.rs"] mod adversarial_tests; #[cfg(test)] -#[path = "tls_fuzz_security_tests.rs"] +#[path = "tests/tls_fuzz_security_tests.rs"] mod fuzz_security_tests; diff --git a/src/proxy/client.rs b/src/proxy/client.rs index 5021e34..a12e069 100644 --- a/src/proxy/client.rs +++ b/src/proxy/client.rs @@ -1211,53 +1211,53 @@ impl RunningClientHandler { } #[cfg(test)] -#[path = "client_security_tests.rs"] +#[path = "tests/client_security_tests.rs"] mod security_tests; #[cfg(test)] -#[path = "client_adversarial_tests.rs"] +#[path = "tests/client_adversarial_tests.rs"] mod adversarial_tests; #[cfg(test)] -#[path = "client_tls_mtproto_fallback_security_tests.rs"] +#[path = "tests/client_tls_mtproto_fallback_security_tests.rs"] mod tls_mtproto_fallback_security_tests; #[cfg(test)] -#[path = "client_tls_clienthello_size_security_tests.rs"] +#[path = "tests/client_tls_clienthello_size_security_tests.rs"] mod tls_clienthello_size_security_tests; #[cfg(test)] -#[path = "client_tls_clienthello_truncation_adversarial_tests.rs"] +#[path = "tests/client_tls_clienthello_truncation_adversarial_tests.rs"] mod tls_clienthello_truncation_adversarial_tests; #[cfg(test)] -#[path = "client_timing_profile_adversarial_tests.rs"] +#[path = "tests/client_timing_profile_adversarial_tests.rs"] mod timing_profile_adversarial_tests; #[cfg(test)] -#[path = "client_masking_budget_security_tests.rs"] +#[path = "tests/client_masking_budget_security_tests.rs"] mod masking_budget_security_tests; #[cfg(test)] -#[path = "client_masking_redteam_expected_fail_tests.rs"] +#[path = "tests/client_masking_redteam_expected_fail_tests.rs"] mod masking_redteam_expected_fail_tests; #[cfg(test)] -#[path = "client_masking_hard_adversarial_tests.rs"] +#[path = "tests/client_masking_hard_adversarial_tests.rs"] mod masking_hard_adversarial_tests; #[cfg(test)] -#[path = "client_masking_stress_adversarial_tests.rs"] +#[path = "tests/client_masking_stress_adversarial_tests.rs"] mod masking_stress_adversarial_tests; #[cfg(test)] -#[path = "client_masking_blackhat_campaign_tests.rs"] +#[path = "tests/client_masking_blackhat_campaign_tests.rs"] mod masking_blackhat_campaign_tests; #[cfg(test)] -#[path = "client_masking_diagnostics_security_tests.rs"] +#[path = "tests/client_masking_diagnostics_security_tests.rs"] mod masking_diagnostics_security_tests; #[cfg(test)] -#[path = "client_masking_shape_hardening_security_tests.rs"] +#[path = "tests/client_masking_shape_hardening_security_tests.rs"] mod masking_shape_hardening_security_tests; diff --git a/src/proxy/direct_relay.rs b/src/proxy/direct_relay.rs index ede908e..114f138 100644 --- a/src/proxy/direct_relay.rs +++ b/src/proxy/direct_relay.rs @@ -390,5 +390,5 @@ async fn do_tg_handshake_static( } #[cfg(test)] -#[path = "direct_relay_security_tests.rs"] +#[path = "tests/direct_relay_security_tests.rs"] mod security_tests; diff --git a/src/proxy/handshake.rs b/src/proxy/handshake.rs index b930caf..8751436 100644 --- a/src/proxy/handshake.rs +++ b/src/proxy/handshake.rs @@ -964,15 +964,15 @@ pub fn encrypt_tg_nonce(nonce: &[u8; HANDSHAKE_LEN]) -> Vec { } #[cfg(test)] -#[path = "handshake_security_tests.rs"] +#[path = "tests/handshake_security_tests.rs"] mod security_tests; #[cfg(test)] -#[path = "handshake_adversarial_tests.rs"] +#[path = "tests/handshake_adversarial_tests.rs"] mod adversarial_tests; #[cfg(test)] -#[path = "handshake_fuzz_security_tests.rs"] +#[path = "tests/handshake_fuzz_security_tests.rs"] mod fuzz_security_tests; /// Compile-time guard: HandshakeSuccess holds cryptographic key material and diff --git a/src/proxy/masking.rs b/src/proxy/masking.rs index 5d61fef..4f013f1 100644 --- a/src/proxy/masking.rs +++ b/src/proxy/masking.rs @@ -408,9 +408,9 @@ async fn consume_client_data(mut reader: R) { } #[cfg(test)] -#[path = "masking_security_tests.rs"] +#[path = "tests/masking_security_tests.rs"] mod security_tests; #[cfg(test)] -#[path = "masking_adversarial_tests.rs"] +#[path = "tests/masking_adversarial_tests.rs"] mod adversarial_tests; diff --git a/src/proxy/middle_relay.rs b/src/proxy/middle_relay.rs index c73944f..d212a43 100644 --- a/src/proxy/middle_relay.rs +++ b/src/proxy/middle_relay.rs @@ -1647,9 +1647,9 @@ where } #[cfg(test)] -#[path = "middle_relay_security_tests.rs"] +#[path = "tests/middle_relay_security_tests.rs"] mod security_tests; #[cfg(test)] -#[path = "middle_relay_idle_policy_security_tests.rs"] +#[path = "tests/middle_relay_idle_policy_security_tests.rs"] mod idle_policy_security_tests; diff --git a/src/proxy/relay.rs b/src/proxy/relay.rs index 8887d47..ed7e758 100644 --- a/src/proxy/relay.rs +++ b/src/proxy/relay.rs @@ -657,9 +657,9 @@ where } #[cfg(test)] -#[path = "relay_security_tests.rs"] +#[path = "tests/relay_security_tests.rs"] mod security_tests; #[cfg(test)] -#[path = "relay_adversarial_tests.rs"] +#[path = "tests/relay_adversarial_tests.rs"] mod adversarial_tests; \ No newline at end of file diff --git a/src/proxy/route_mode.rs b/src/proxy/route_mode.rs index 114babe..a3dea85 100644 --- a/src/proxy/route_mode.rs +++ b/src/proxy/route_mode.rs @@ -133,5 +133,5 @@ pub(crate) fn cutover_stagger_delay(session_id: u64, generation: u64) -> Duratio } #[cfg(test)] -#[path = "route_mode_security_tests.rs"] +#[path = "tests/route_mode_security_tests.rs"] mod security_tests; diff --git a/src/proxy/client_adversarial_tests.rs b/src/proxy/tests/client_adversarial_tests.rs similarity index 100% rename from src/proxy/client_adversarial_tests.rs rename to src/proxy/tests/client_adversarial_tests.rs diff --git a/src/proxy/client_masking_blackhat_campaign_tests.rs b/src/proxy/tests/client_masking_blackhat_campaign_tests.rs similarity index 100% rename from src/proxy/client_masking_blackhat_campaign_tests.rs rename to src/proxy/tests/client_masking_blackhat_campaign_tests.rs diff --git a/src/proxy/client_masking_budget_security_tests.rs b/src/proxy/tests/client_masking_budget_security_tests.rs similarity index 100% rename from src/proxy/client_masking_budget_security_tests.rs rename to src/proxy/tests/client_masking_budget_security_tests.rs diff --git a/src/proxy/client_masking_diagnostics_security_tests.rs b/src/proxy/tests/client_masking_diagnostics_security_tests.rs similarity index 100% rename from src/proxy/client_masking_diagnostics_security_tests.rs rename to src/proxy/tests/client_masking_diagnostics_security_tests.rs diff --git a/src/proxy/client_masking_hard_adversarial_tests.rs b/src/proxy/tests/client_masking_hard_adversarial_tests.rs similarity index 100% rename from src/proxy/client_masking_hard_adversarial_tests.rs rename to src/proxy/tests/client_masking_hard_adversarial_tests.rs diff --git a/src/proxy/client_masking_redteam_expected_fail_tests.rs b/src/proxy/tests/client_masking_redteam_expected_fail_tests.rs similarity index 100% rename from src/proxy/client_masking_redteam_expected_fail_tests.rs rename to src/proxy/tests/client_masking_redteam_expected_fail_tests.rs diff --git a/src/proxy/client_masking_shape_hardening_security_tests.rs b/src/proxy/tests/client_masking_shape_hardening_security_tests.rs similarity index 100% rename from src/proxy/client_masking_shape_hardening_security_tests.rs rename to src/proxy/tests/client_masking_shape_hardening_security_tests.rs diff --git a/src/proxy/client_masking_stress_adversarial_tests.rs b/src/proxy/tests/client_masking_stress_adversarial_tests.rs similarity index 100% rename from src/proxy/client_masking_stress_adversarial_tests.rs rename to src/proxy/tests/client_masking_stress_adversarial_tests.rs diff --git a/src/proxy/client_security_tests.rs b/src/proxy/tests/client_security_tests.rs similarity index 100% rename from src/proxy/client_security_tests.rs rename to src/proxy/tests/client_security_tests.rs diff --git a/src/proxy/client_timing_profile_adversarial_tests.rs b/src/proxy/tests/client_timing_profile_adversarial_tests.rs similarity index 100% rename from src/proxy/client_timing_profile_adversarial_tests.rs rename to src/proxy/tests/client_timing_profile_adversarial_tests.rs diff --git a/src/proxy/client_tls_clienthello_size_security_tests.rs b/src/proxy/tests/client_tls_clienthello_size_security_tests.rs similarity index 100% rename from src/proxy/client_tls_clienthello_size_security_tests.rs rename to src/proxy/tests/client_tls_clienthello_size_security_tests.rs diff --git a/src/proxy/client_tls_clienthello_truncation_adversarial_tests.rs b/src/proxy/tests/client_tls_clienthello_truncation_adversarial_tests.rs similarity index 100% rename from src/proxy/client_tls_clienthello_truncation_adversarial_tests.rs rename to src/proxy/tests/client_tls_clienthello_truncation_adversarial_tests.rs diff --git a/src/proxy/client_tls_mtproto_fallback_security_tests.rs b/src/proxy/tests/client_tls_mtproto_fallback_security_tests.rs similarity index 100% rename from src/proxy/client_tls_mtproto_fallback_security_tests.rs rename to src/proxy/tests/client_tls_mtproto_fallback_security_tests.rs diff --git a/src/proxy/direct_relay_security_tests.rs b/src/proxy/tests/direct_relay_security_tests.rs similarity index 100% rename from src/proxy/direct_relay_security_tests.rs rename to src/proxy/tests/direct_relay_security_tests.rs diff --git a/src/proxy/handshake_adversarial_tests.rs b/src/proxy/tests/handshake_adversarial_tests.rs similarity index 100% rename from src/proxy/handshake_adversarial_tests.rs rename to src/proxy/tests/handshake_adversarial_tests.rs diff --git a/src/proxy/handshake_fuzz_security_tests.rs b/src/proxy/tests/handshake_fuzz_security_tests.rs similarity index 100% rename from src/proxy/handshake_fuzz_security_tests.rs rename to src/proxy/tests/handshake_fuzz_security_tests.rs diff --git a/src/proxy/handshake_security_tests.rs b/src/proxy/tests/handshake_security_tests.rs similarity index 100% rename from src/proxy/handshake_security_tests.rs rename to src/proxy/tests/handshake_security_tests.rs diff --git a/src/proxy/masking_adversarial_tests.rs b/src/proxy/tests/masking_adversarial_tests.rs similarity index 100% rename from src/proxy/masking_adversarial_tests.rs rename to src/proxy/tests/masking_adversarial_tests.rs diff --git a/src/proxy/masking_security_tests.rs b/src/proxy/tests/masking_security_tests.rs similarity index 100% rename from src/proxy/masking_security_tests.rs rename to src/proxy/tests/masking_security_tests.rs diff --git a/src/proxy/middle_relay_idle_policy_security_tests.rs b/src/proxy/tests/middle_relay_idle_policy_security_tests.rs similarity index 100% rename from src/proxy/middle_relay_idle_policy_security_tests.rs rename to src/proxy/tests/middle_relay_idle_policy_security_tests.rs diff --git a/src/proxy/middle_relay_security_tests.rs b/src/proxy/tests/middle_relay_security_tests.rs similarity index 100% rename from src/proxy/middle_relay_security_tests.rs rename to src/proxy/tests/middle_relay_security_tests.rs diff --git a/src/proxy/relay_adversarial_tests.rs b/src/proxy/tests/relay_adversarial_tests.rs similarity index 100% rename from src/proxy/relay_adversarial_tests.rs rename to src/proxy/tests/relay_adversarial_tests.rs diff --git a/src/proxy/relay_security_tests.rs b/src/proxy/tests/relay_security_tests.rs similarity index 100% rename from src/proxy/relay_security_tests.rs rename to src/proxy/tests/relay_security_tests.rs diff --git a/src/proxy/route_mode_security_tests.rs b/src/proxy/tests/route_mode_security_tests.rs similarity index 100% rename from src/proxy/route_mode_security_tests.rs rename to src/proxy/tests/route_mode_security_tests.rs diff --git a/src/stats/mod.rs b/src/stats/mod.rs index 27461ef..c9fc318 100644 --- a/src/stats/mod.rs +++ b/src/stats/mod.rs @@ -1893,9 +1893,9 @@ mod tests { } #[cfg(test)] -#[path = "connection_lease_security_tests.rs"] +#[path = "tests/connection_lease_security_tests.rs"] mod connection_lease_security_tests; #[cfg(test)] -#[path = "replay_checker_security_tests.rs"] +#[path = "tests/replay_checker_security_tests.rs"] mod replay_checker_security_tests; diff --git a/src/stats/connection_lease_security_tests.rs b/src/stats/tests/connection_lease_security_tests.rs similarity index 100% rename from src/stats/connection_lease_security_tests.rs rename to src/stats/tests/connection_lease_security_tests.rs diff --git a/src/stats/replay_checker_security_tests.rs b/src/stats/tests/replay_checker_security_tests.rs similarity index 100% rename from src/stats/replay_checker_security_tests.rs rename to src/stats/tests/replay_checker_security_tests.rs diff --git a/src/ip_tracker_regression_tests.rs b/src/tests/ip_tracker_regression_tests.rs similarity index 100% rename from src/ip_tracker_regression_tests.rs rename to src/tests/ip_tracker_regression_tests.rs diff --git a/src/tls_front/emulator.rs b/src/tls_front/emulator.rs index 063fcbb..e8fdf16 100644 --- a/src/tls_front/emulator.rs +++ b/src/tls_front/emulator.rs @@ -294,7 +294,7 @@ pub fn build_emulated_server_hello( } #[cfg(test)] -#[path = "emulator_security_tests.rs"] +#[path = "tests/emulator_security_tests.rs"] mod security_tests; #[cfg(test)] diff --git a/src/tls_front/emulator_security_tests.rs b/src/tls_front/tests/emulator_security_tests.rs similarity index 100% rename from src/tls_front/emulator_security_tests.rs rename to src/tls_front/tests/emulator_security_tests.rs diff --git a/src/transport/middle_proxy/mod.rs b/src/transport/middle_proxy/mod.rs index 3013018..74330b8 100644 --- a/src/transport/middle_proxy/mod.rs +++ b/src/transport/middle_proxy/mod.rs @@ -22,16 +22,22 @@ mod selftest; mod wire; mod pool_status; #[cfg(test)] +#[path = "tests/health_regression_tests.rs"] mod health_regression_tests; #[cfg(test)] +#[path = "tests/health_integration_tests.rs"] mod health_integration_tests; #[cfg(test)] +#[path = "tests/health_adversarial_tests.rs"] mod health_adversarial_tests; #[cfg(test)] +#[path = "tests/send_adversarial_tests.rs"] mod send_adversarial_tests; #[cfg(test)] +#[path = "tests/pool_writer_security_tests.rs"] mod pool_writer_security_tests; #[cfg(test)] +#[path = "tests/pool_refill_security_tests.rs"] mod pool_refill_security_tests; use bytes::Bytes; diff --git a/src/transport/middle_proxy/health_adversarial_tests.rs b/src/transport/middle_proxy/tests/health_adversarial_tests.rs similarity index 100% rename from src/transport/middle_proxy/health_adversarial_tests.rs rename to src/transport/middle_proxy/tests/health_adversarial_tests.rs diff --git a/src/transport/middle_proxy/health_integration_tests.rs b/src/transport/middle_proxy/tests/health_integration_tests.rs similarity index 100% rename from src/transport/middle_proxy/health_integration_tests.rs rename to src/transport/middle_proxy/tests/health_integration_tests.rs diff --git a/src/transport/middle_proxy/health_regression_tests.rs b/src/transport/middle_proxy/tests/health_regression_tests.rs similarity index 100% rename from src/transport/middle_proxy/health_regression_tests.rs rename to src/transport/middle_proxy/tests/health_regression_tests.rs diff --git a/src/transport/middle_proxy/pool_refill_security_tests.rs b/src/transport/middle_proxy/tests/pool_refill_security_tests.rs similarity index 100% rename from src/transport/middle_proxy/pool_refill_security_tests.rs rename to src/transport/middle_proxy/tests/pool_refill_security_tests.rs diff --git a/src/transport/middle_proxy/pool_writer_security_tests.rs b/src/transport/middle_proxy/tests/pool_writer_security_tests.rs similarity index 100% rename from src/transport/middle_proxy/pool_writer_security_tests.rs rename to src/transport/middle_proxy/tests/pool_writer_security_tests.rs diff --git a/src/transport/middle_proxy/send_adversarial_tests.rs b/src/transport/middle_proxy/tests/send_adversarial_tests.rs similarity index 100% rename from src/transport/middle_proxy/send_adversarial_tests.rs rename to src/transport/middle_proxy/tests/send_adversarial_tests.rs