You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Parent Issue: #113 - Create Dependency Installation Package for E2E Tests Depends On: #115 - Create CLI Binary with Check Command (Issue 1-1-2) Epic: #112 - Refactor and Improve E2E Test Execution
Overview
Create Docker-based testing infrastructure to verify the CLI binary works correctly in a clean Ubuntu environment. This ensures the binary can detect missing dependencies and provides confidence before implementing installation logic.
This is Phase 3 of 4 for building the dependency installation package.
Objectives
Create Dockerfile based on ubuntu:24.04
Set up container helpers for file operations
Write Docker-based tests for the CLI binary
Test detection of missing and installed tools
Verify exit codes and error messages
Key Components
Dockerfile:
Base: ubuntu:24.04
Installs: build-essential, curl
Does NOT install: cargo-machete, OpenTofu, Ansible, LXD (tests detection of missing deps)
Container Helpers:
Copy existing helpers from src/testing/e2e/containers/
copy_file_to_container() - Copy binary to container
Container startup and cleanup utilities
Tests:
Test binary detects missing dependencies correctly
Test binary reports installed dependencies correctly
Verify exit codes (0 for all present, 1 for missing deps)
Activity
docs: add GitHub issues for E2E test refactoring EPIC
Merge #122: Create detection logic package for development dependencies
feat: [#116] add Docker test infrastructure for CLI
style: [#116] fix rustfmt formatting issues
refactor: [#116] address code review feedback
fix: [#116] address clippy linting errors
refactor: [#116] improve container test utilities structure
refactor: [#116] introduce CommandOutput type for container execution
refactor: [#116] introduce ExitCode type alias
refactor: [#116] extract logging into dedicated module
refactor: [#116] extract handlers module with check and list submodules
refactor: [#116] replace Box<dyn Error> with concrete error enums in …
refactor: [#116] eliminate map_err calls using From trait implementat…
refactor: [#116] use Dependency enum for type-safe dependency references
refactor: [#116] normalize 'tool' to 'dependency' terminology and use…
refactor: [#116] simplify dependency-installer output to use structur…
feat: [#116] add --log-level CLI option to control logging output
refactor: [#116] improve structured logging with consistent status field
refactor: [#116] apply module organization conventions to dependency-…
test: [#116] rename tests to follow it_should pattern and reveal inte…
Merge #132: feat: Add Docker test infrastructure for dependency-insta…
Merge #136: Implement dependency installation logic with async Rust c…
chore: remove closed issue documentation files