Skip to content

Commit e86fe48

Browse files
committed
refactor: [#220] update infrastructure exports for external validators
1 parent dbe2876 commit e86fe48

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

src/infrastructure/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@
1111
//! - `docker_compose` - Docker Compose template generation
1212
//! - `tofu` - `OpenTofu` template generation and project structure
1313
//! - `tracker` - Torrust Tracker configuration templates
14-
//! - `remote_actions` - Repository-like implementations for remote system operations
14+
//! - `remote_actions` - SSH-based operations executed inside VMs
15+
//! - `external_validators` - E2E validation from outside VMs (HTTP health checks)
1516
//! - `persistence` - Persistence infrastructure (repositories, file locking, storage)
1617
//! - `trace` - Trace file generation for error analysis
1718
19+
pub mod external_validators;
1820
pub mod persistence;
1921
pub mod remote_actions;
2022
pub mod templating;

src/infrastructure/remote_actions/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
//! containing leaf-level actions that directly interact with remote systems via SSH.
55
//! These actions are the building blocks used by steps (Level 2) and commands (Level 1).
66
//!
7+
//! ## Execution Context: Inside VM via SSH
8+
//!
9+
//! All remote actions in this module execute commands **INSIDE the VM via SSH**.
10+
//! For external validation (E2E testing from outside the VM), see `external_validators/`.
11+
//!
12+
//! **Distinction**:
13+
//! - **remote_actions** (this module): Execute commands inside VM via SSH
14+
//! - **external_validators**: Validate services from outside VM via HTTP
15+
//!
716
//! ## Available Remote Actions
817
//!
918
//! - `validators::cloud_init` - Cloud-init status checking and validation
@@ -31,7 +40,6 @@ pub mod validators;
3140
pub use validators::cloud_init::CloudInitValidator;
3241
pub use validators::docker::DockerValidator;
3342
pub use validators::docker_compose::DockerComposeValidator;
34-
pub use validators::running_services::RunningServicesValidator;
3543

3644
/// Errors that can occur during remote action execution
3745
#[derive(Error, Debug)]
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
pub mod cloud_init;
22
pub mod docker;
33
pub mod docker_compose;
4-
pub mod running_services;
54

65
pub use cloud_init::CloudInitValidator;
76
pub use docker::DockerValidator;
87
pub use docker_compose::DockerComposeValidator;
9-
pub use running_services::RunningServicesValidator;

0 commit comments

Comments
 (0)