refactor(subnet): split verdict enforcement out of the monitor
monitor.rs reached 257 lines after the trusted-network suppression (limit is 250). BanPolicy, enforce_tracker_verdicts, ban_xdp_verdicts and prefix_len move to src/engine/subnet/enforce.rs; the monitor keeps the task, source selection and verdict logging, re-exporting enforce_tracker_verdicts so existing paths stay valid. Also documents the new tests/edge_e2e.rs scenarios in docs/testing.md.
This commit is contained in:
parent
ca7ce8c58e
commit
15f3fcb895
4 changed files with 122 additions and 100 deletions
|
|
@ -31,6 +31,14 @@ cargo clippy --all-targets --all-features -- -D warnings
|
|||
cargo deny check
|
||||
```
|
||||
|
||||
E2E-сценарии живут в `tests/edge_e2e.rs`: реальный TCP-клиент через продакшн-accept-loop и
|
||||
pipeline до upstream на loopback (обычный HTTP, PoW с решённым и неверным nonce, rate-limit,
|
||||
blacklist). Root и внешняя сеть не нужны, каждый тест укладывается в 5 с:
|
||||
|
||||
```bash
|
||||
cargo test --all-features --test edge_e2e
|
||||
```
|
||||
|
||||
XDP: smoke-check компиляции BPF-программы:
|
||||
|
||||
```bash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue