Snider
|
6e346cb2fd
|
test(devops): Phase 0 test coverage and hardening
- Fix go vet warnings across 4 files: update stale API calls in
container/linuxkit_test.go, container/state_test.go, and
devops/devops_test.go (removed io.Local arg from NewState/LoadState),
rewrite container/templates_test.go for package-level function API
- Add ansible/parser_test.go: 17 tests covering ParsePlaybook,
ParseInventory, ParseTasks, GetHosts, GetHostVars, isModule,
NormalizeModule (plays, vars, handlers, blocks, loops, roles, FQCN)
- Add ansible/types_test.go: RoleRef/Task UnmarshalYAML, Inventory
structure, Facts, TaskResult, KnownModules validation
- Add ansible/executor_test.go: executor logic (getHosts, matchesTags,
evaluateWhen, templateString, applyFilter, resolveLoop, templateArgs,
handleNotify, normalizeConditions, helper functions)
- Add infra/hetzner_test.go: HCloudClient/HRobotClient construction,
do() round-trip via httptest, API error handling, JSON serialisation
for HCloudServer, HCloudLoadBalancer, HRobotServer
- Add infra/cloudns_test.go: doRaw() round-trip via httptest, zone/record
JSON parsing, CRUD response validation, ACME challenge logic,
auth param verification, error handling
- Fix go.mod replace directive path (../go -> ../core)
- All tests pass, go vet clean, go test -race clean
Co-Authored-By: Virgil <virgil@lethean.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
2026-02-20 01:36:03 +00:00 |
|