go-devops/ansible
Snider 3330e55b2b test(ansible): Phase 1 Steps 1.0-1.1 — SSH mock + command module tests
Step 1.0: MockSSHClient with command registry, file system simulation,
become state tracking, execution log, upload log, and assertion helpers.
Module shims via sshRunner interface for testability.

Step 1.1: 48 tests for command/shell/raw/script modules verifying:
- command uses Run(), shell uses RunScript()
- chdir wrapping, non-zero RC, SSH error propagation
- raw passes through without shell wrapping
- script reads local file content, sends via RunScript()
- Cross-module dispatch differentiation
- Template variable resolution in args

Co-Authored-By: Virgil <virgil@lethean.io>
2026-02-20 02:31:48 +00:00
..
executor.go feat: extract devops packages from core/go 2026-02-16 15:21:39 +00:00
executor_test.go test(devops): Phase 0 test coverage and hardening 2026-02-20 01:36:03 +00:00
mock_ssh_test.go test(ansible): Phase 1 Steps 1.0-1.1 — SSH mock + command module tests 2026-02-20 02:31:48 +00:00
modules.go feat: extract devops packages from core/go 2026-02-16 15:21:39 +00:00
modules_cmd_test.go test(ansible): Phase 1 Steps 1.0-1.1 — SSH mock + command module tests 2026-02-20 02:31:48 +00:00
parser.go feat: extract devops packages from core/go 2026-02-16 15:21:39 +00:00
parser_test.go test(devops): Phase 0 test coverage and hardening 2026-02-20 01:36:03 +00:00
ssh.go feat: extract devops packages from core/go 2026-02-16 15:21:39 +00:00
ssh_test.go feat: extract devops packages from core/go 2026-02-16 15:21:39 +00:00
types.go feat: extract devops packages from core/go 2026-02-16 15:21:39 +00:00
types_test.go test(devops): Phase 0 test coverage and hardening 2026-02-20 01:36:03 +00:00