Expand description
Test context management for E2E testing
This module provides the TestContext which manages the complete setup
and configuration of test contexts for end-to-end deployment testing.
§Key Features
- Temporary directory and SSH key management
- Service container initialization with test configuration
- Template preparation and cleanup for test isolation
- Comprehensive error handling for environment setup failures
§Context Lifecycle
- Setup - Create temporary directories, SSH keys, clean templates
- Configuration - Initialize services with test-specific settings
- Usage - Provide services for test execution
- Cleanup - Automatic cleanup via RAII (
TempDir)
The context ensures each test runs in isolation with its own temporary resources and configuration.
Structs§
- Test
Context - Main test context combining configuration and services
Enums§
- Test
Context Error - Errors that can occur during test context creation and initialization
- Test
Context Type - Type of test context indicating what infrastructure is used