- Create comprehensive smoke test suite for post-deployment validation - Implement 4 test categories: infrastructure, service, authentication, order flow - Add graceful failure handling for unavailable services - Create automated test runner script with multiple modes (fast, verbose, category) - Document known blockers from Agent 96 (Backtesting/ML services) - Add 30+ individual smoke tests covering critical paths - Enable smoke-tests feature in tests/Cargo.toml - Create detailed README with usage and troubleshooting Test Categories: 1. Infrastructure Health: PostgreSQL, Redis, Vault, InfluxDB, Prometheus, Grafana 2. Service Health: Trading Service, API Gateway (+ blocked: Backtesting, ML) 3. Authentication Flow: JWT, sessions, revocation, rate limiting 4. Basic Order Flow: Order CRUD, positions, order history Features: - Configurable timeouts (5-10s per test) - Environment variable configuration - Graceful service unavailability handling - Parallel and sequential execution modes - Detailed pass/fail reporting Usage: ./run_smoke_tests.sh # Run all tests ./run_smoke_tests.sh --fast # Critical tests only ./run_smoke_tests.sh --verbose # Debug logging ./run_smoke_tests.sh --category infrastructure Blocked Tests (marked with #[ignore]): - Backtesting Service (config issues from Agent 96) - ML Training Service (config issues from Agent 96) Wave 125 Phase 3B - Deployment Excellence
19 lines
549 B
Rust
19 lines
549 B
Rust
//! Smoke Tests - Integration Test Entry Point
|
|
//!
|
|
//! This file serves as the integration test entry point for the smoke test suite.
|
|
//! Cargo will compile this as a separate test binary that can be run with:
|
|
//!
|
|
//! ```bash
|
|
//! cargo test --test smoke_tests
|
|
//! cargo test --test smoke_tests --features smoke-tests
|
|
//! ```
|
|
|
|
#[cfg(feature = "smoke-tests")]
|
|
mod smoke_tests;
|
|
|
|
#[cfg(not(feature = "smoke-tests"))]
|
|
#[test]
|
|
fn smoke_tests_disabled() {
|
|
println!("⚠️ Smoke tests are disabled. Enable with: cargo test --features smoke-tests");
|
|
}
|