Skip to main content

Module context

Module context 

Source
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

  1. Setup - Create temporary directories, SSH keys, clean templates
  2. Configuration - Initialize services with test-specific settings
  3. Usage - Provide services for test execution
  4. Cleanup - Automatic cleanup via RAII (TempDir)

The context ensures each test runs in isolation with its own temporary resources and configuration.

Structs§

TestContext
Main test context combining configuration and services

Enums§

TestContextError
Errors that can occur during test context creation and initialization
TestContextType
Type of test context indicating what infrastructure is used