chore(): increase test coverage and update dependencies
Some checks are pending
ci/woodpecker/pr/pr Pipeline is pending

This commit is contained in:
2025-12-18 23:12:27 +01:00
parent e779c5a38b
commit 2d1aa62c61
15 changed files with 384 additions and 74 deletions

View File

@@ -1,4 +1,17 @@
CHANGELOG
CHANGELOG
v1.1.1
- Updated Dependencies
- Added: unit tests
- Added `internal/hetzner/hetzneragent_extra_test.go` covering userdata generation and mocked runtime checks.
- Added `internal/woodpecker/agent_test.go` covering `CreateWoodpeckerAgent`, `GetAgentIdByName`, `DecomAgent` (httptest-based).
- Added `internal/woodpecker/metrics_test.go` covering `QueueInfo`, `CheckPending`, and `CheckRunning`.
- Implemented `internal/logging/logging_test.go` assertions for `ConfigureLogger` levels.
- Changed: code to improve testability
- Introduced `refreshNodeInfo` indirection in `internal/hetzner/hetzneragent.go` to allow mocking in tests.
- Updated `hetzner` userdata test expectations and fixed JSON encoding in tests.
- Notes:
- No functional behavior changes except testability refactor (indirection).
v1.1.0
@@ -16,4 +29,4 @@ First stable release
v0.0.1
First test release
First test release