forked from lei.chen/myxce
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:
parent
1e7a7312bf
commit
65afa04aaf
2 changed files with 328 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue