Skip to main content

Module preflight_cleanup

Module preflight_cleanup 

Source
Expand description

Generic preflight cleanup functionality

This module provides directory cleanup functions that are used by both container-based and VM-based E2E testing workflows. These functions handle the cleanup of build and template directories to ensure test isolation.

Re-exports§

pub use crate::testing::e2e::tasks::container::preflight_cleanup::preflight_cleanup_previous_resources;

Structs§

DirectoryCleanupSpec
Specification for a directory cleanup operation

Enums§

PreflightCleanupError
Errors that can occur during pre-flight cleanup operations

Functions§

cleanup_build_directory
Cleans the build directory to ensure fresh template state for E2E tests
cleanup_data_environment
Cleans the data directory for the test environment to ensure fresh state for E2E tests
cleanup_directories
Cleans multiple directories in sequence
cleanup_directory
Generic directory cleanup function for E2E test preflight operations
cleanup_previous_test_data
Cleans the data directory for a specific environment name before TestContext creation
cleanup_templates_directory
Cleans the templates directory to ensure fresh embedded template extraction for E2E tests