-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmod.rs
More file actions
61 lines (53 loc) · 2.01 KB
/
Copy pathmod.rs
File metadata and controls
61 lines (53 loc) · 2.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! Container management for E2E testing
//!
//! This module provides abstractions for managing different types of containers
//! used in end-to-end testing scenarios.
//!
//! ## Available Container Types
//!
//! - **Provisioned Containers** - Docker containers that simulate provisioned instances
//! in the deployment workflow, providing SSH access and basic system functionality.
//!
//! ## Container Collaborators
//!
//! - **Docker Image Builder** - Configurable builder for Docker images used in testing
//! - **Container Config Builder** - Flexible builder for container configurations
//!
//! ## Container Actions
//!
//! - **Container Actions** - Decoupled operations that can be performed on containers
//! (SSH setup, connectivity checks, etc.)
//!
//! ## Re-exports
//!
//! For backward compatibility, this module re-exports the provisioned container
//! functionality at the top level:
//!
//! ```rust,no_run
//! use torrust_tracker_deployer_lib::testing::e2e::containers::{
//! StoppedProvisionedContainer, RunningProvisionedContainer, ContainerError,
//! ContainerImageBuilder, ContainerConfigBuilder
//! };
//! ```
pub mod actions;
pub mod config_builder;
pub mod errors;
pub mod executor;
pub mod image_builder;
pub mod provisioned;
pub mod timeout;
pub mod tracker_container_setup;
// Re-export provisioned container types for backward compatibility
pub use provisioned::{RunningProvisionedContainer, StoppedProvisionedContainer};
// Re-export error types for public use
pub use errors::{ContainerError, Result};
// Re-export timeout types for public use
pub use timeout::ContainerTimeouts;
// Re-export docker builder for public use
pub use image_builder::{ContainerBuildError, ContainerImageBuilder};
// Re-export container config builder for public use
pub use config_builder::ContainerConfigBuilder;
// Re-export executor trait for container actions
pub use executor::ContainerExecutor;
// Re-export tracker container setup types for E2E testing
pub use tracker_container_setup::{E2eConfigEnvironment, TrackerPorts};