Skip to main content

torrust_tracker_deployer_lib/infrastructure/external_validators/
mod.rs

1//! External validators module
2//!
3//! This module contains validators that perform end-to-end validation from
4//! OUTSIDE the VM, testing services as an external user would access them.
5//!
6//! ## Execution Context
7//!
8//! Unlike `remote_actions` which execute commands INSIDE the VM via SSH,
9//! external validators:
10//! - Run from the test runner or deployment machine
11//! - Test service accessibility via HTTP/HTTPS from outside
12//! - Validate end-to-end functionality including network and firewall
13//!
14//! ## Distinction from Remote Actions
15//!
16//! **Remote Actions** (`infrastructure/remote_actions/`):
17//! - Execute commands via SSH inside the VM
18//! - Examples: cloud-init validation, Docker installation checks
19//! - Scope: Internal VM state and configuration
20//!
21//! **External Validators** (this module):
22//! - Make HTTP requests from outside the VM
23//! - Examples: Service health checks, API accessibility tests
24//! - Scope: End-to-end service validation including network/firewall
25//!
26//! ## Available Validators
27//!
28//! - `running_services` - Validates Docker Compose services via external HTTP/HTTPS health checks
29
30pub mod running_services;
31
32pub use running_services::RunningServicesValidator;