2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2026-10-22 07:38:08 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
Vinícius Ferrão 0a39f93270 test(dhcp): verify service-node dispatch requests
The dispatch test matched source patterns without checking returned
requests. Load the complete plugin and exercise its request preprocessing
with fixture database rows and the real service-node mapping code.

Check destination filtering, network regeneration, self-dispatch guards,
request contents and hierarchical network errors. Run each case in a fresh
process so lexical option state cannot leak between fixtures.
2026-09-17 16:41:26 -03:00
Vinícius Ferrão 158c16a138 test(dhcp): cover the service node dispatch scope for makedhcp
Assert that a node-targeted makedhcp maps its nodes to their service nodes and
skips the ones serving none of them, that regenerating the networks with -n stays
exempt because a dynamic range is not tied to a node, and that an unmapped
noderange still reaches every service node instead of none.

Also pin the two conditions the loop already had, so restricting the fan-out does
not quietly drop the self dispatch guards.
2026-08-08 23:56:27 -03:00