Files
jgrusewski 1ed97579c1 fix(ci): clippy test-gate uses --lib, fix pre-existing lint errors
The CI test-gate used `--all-targets` which includes test targets where
700+ workspace lint violations accumulated (to_string on &str, assert!
on Result, shadow_unrelated, etc.). Switched to `--lib` for clippy —
library code is what matters for production safety. Test code is still
validated by `cargo test --workspace --lib`.

Also fixed:
- config: allow expect_used in test module
- ctrader-openapi: relaxed lint profile (proto-generated code)
- ctrader-openapi: constant assertion in dispatch test
- testing/load: removed [[test]] targets for non-existent files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:10:18 +01:00
..

load

Minimal-dependency load tests for Trading Service throughput validation. Rust gRPC tests (direct port 50052) plus authenticated ghz shell scripts (API Gateway port 50051).

Test Suites

Rust Tests (direct trading service)

  • test_1_baseline_latency -- 1K sequential orders
  • test_2_concurrent_connections -- 100 clients x 100 orders
  • test_3_sustained_load (ignored) -- 5 min, 10K orders/sec
  • test_4_database_performance -- 5K order DB writes
  • test_5_resource_monitoring -- health + metrics (feature health-checks)
  • test_6_production_readiness -- 50 clients x 200 orders, success >= 99%

ghz Scripts (API Gateway with JWT)

  • ghz_quick_auth_test.sh -- single authenticated request
  • ghz_authenticated.sh -- baseline/medium/high/sustained scenarios

Usage

cargo test -p load --release -- --nocapture