test(config): pin that a partial overlay preserves omitted nested fields

ApplyOverlayValues documents that "only the keys present are replaced, every
field the overlay omits keeps its existing value". That promise was only tested
one level deep (budgets.max_steps); it was untested two levels deep into a
struct of structs, which is the shape config.Services has.

The concrete risk being pinned: an overlay that changes only
services.state.target must not clear target_token, because dropping the token
silently removes authentication for a non-loopback State Store.

All three cases pass, so the behaviour is correct as written and no production
change is warranted. This test is a regression guard on the depth that matters.
This commit is contained in:
sam committed 2026-09-19 02:24:38 +10:00
1 parent 5a00cdf46b
commit 63d7501cfb

Diff Content Not Available