test(raft-adapter-conformance): full config-push reply integrity coverage

Adds the remaining 3 of 4 handle_repl_config_push reject-path tests
(malformed request, missing bytes/sha256, conf_save_config failure via
a deterministic ENOTDIR fixture), the EAGAIN-still-accepts test, and
term-adoption-on-accept (task 2.2's own test only covered the reject
case). Requirement 2.4 (unknown-outcome handling) is already covered
by the pre-existing test_wait_all_with_timeout_slow_threads, cited
rather than duplicated.

1055 -> 1060 tests, 0 failures.
This commit is contained in:
Rongsong Shen 2026-07-29 13:13:25 +00:00
parent 1e7a7312bf
commit 65afa04aaf
2 changed files with 328 additions and 1 deletions

View file

@ -23,7 +23,7 @@
- _Requirements: 7.4, 7.5_
- _Boundary: cluster.c reply handling_
- [ ] 2.3 Test configuration-push reply integrity end-to-end
- [x] 2.3 Test configuration-push reply integrity end-to-end
- Unit test: each of the four reject conditions in `handle_repl_config_push` produces `accepted=0` with the current term, via the new send-hook
- Unit test: the `-EAGAIN` activation-defer path still produces `accepted=1`
- Unit test: an inbound config-push reply carrying a higher term triggers adoption via the `cluster.c` wiring from 2.2