rcourtman
|
3d214c80a7
|
Preserve guest NICs when only filtered addresses are reported (#1319)
|
2026-03-27 16:06:38 +00:00 |
|
rcourtman
|
3609fb676b
|
Preserve named guest interfaces without MACs (#1319)
|
2026-03-27 15:25:52 +00:00 |
|
rcourtman
|
2a4432048a
|
Continue guest-agent polling after transient status failures (#1319)
|
2026-03-27 14:50:28 +00:00 |
|
rcourtman
|
bce800e95d
|
Retry incomplete guest network metadata sooner (#1319)
|
2026-03-27 11:41:56 +00:00 |
|
rcourtman
|
176228381b
|
Preserve guest NIC identity before IP assignment (#1319)
|
2026-03-27 11:27:15 +00:00 |
|
rcourtman
|
2afde29a48
|
Retry partial guest metadata sooner (#1319)
|
2026-03-27 11:15:17 +00:00 |
|
rcourtman
|
d91f21b961
|
Preserve fresh guest metadata across transient agent misses (#1319)
|
2026-03-26 23:20:38 +00:00 |
|
rcourtman
|
6f9da1b70c
|
Retry empty guest metadata sooner (#1319)
|
2026-03-26 21:03:51 +00:00 |
|
rcourtman
|
2196327769
|
Preserve VM guest metadata across transient agent gaps (#1319)
|
2026-03-26 00:12:19 +00:00 |
|
rcourtman
|
4f824ab148
|
style: Apply gofmt to 37 files
Standardize code formatting across test files and monitor.go.
No functional changes.
|
2025-12-02 17:21:48 +00:00 |
|
rcourtman
|
20ace4fdf5
|
test: Add tests for monitor helper and metrics functions
- clearGuestMetadataCache: nil safety, cache clearing, key isolation
- shouldRunBackupPoll: interval-based, cycle-based, config validation
- storeNodeLastSuccess/lastNodeSuccessFor: store/retrieve, overwrite, missing keys
Improves coverage for backup polling logic and node metrics tracking.
|
2025-12-01 21:18:33 +00:00 |
|
rcourtman
|
ddfe2dc2c9
|
test: Add comprehensive tests for guest metadata functions
Tests for rate limiting, retry, and slot management:
- retryGuestAgentCall: timeout retry, non-timeout break, context cancellation
- acquireGuestMetadataSlot: nil safety, slot acquisition, context cancellation
- releaseGuestMetadataSlot: nil safety, non-blocking release
- tryReserveGuestMetadataFetch: reservation logic, default hold duration
- scheduleNextGuestMetadataFetch: interval, jitter, RNG handling
- deferGuestMetadataRetry: backoff logic, defaults
Covers error handling and edge cases in guest agent metadata fetching.
|
2025-12-01 21:10:28 +00:00 |
|
rcourtman
|
63ba88580e
|
test: Add unit tests for guest_metadata.go pure functions
Add comprehensive tests for:
- guestMetadataCacheKey: cache key generation with edge cases
- cloneStringSlice: nil/empty handling, deep copy verification
- cloneGuestNetworkInterfaces: nil/empty, deep address copy
- processGuestNetworkInterfaces: IP filtering (loopback, link-local),
deduplication, sorting, whitespace trimming, traffic-only interfaces
Increases monitoring package coverage from 38.9% to 39.6%.
|
2025-12-01 12:18:59 +00:00 |
|