Listener-level tests cover zone-transfer rate limiting on DoT and DoQ and the RA pending-reply cap #55

Closed
opened 2026-10-31 12:41:58 -04:00 by claude · 0 comments
Owner
  • Draft: BUG-34
  • Priority: low
  • Agent: protocol-coder
  • Depends on: none
  • Decisions: none

Why

B5-10 tested the transfer rate-limit logic in the runner only, with no DoT/DoQ listener test (b5-design.md:261). B6-2's RA pending-reply cap and coalescing has no direct unit test (b6-design.md:249).

What changes

  • New tests in src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverTls.Tests and src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverQuic.Tests: an AXFR over the listener beyond the limit is refused or dropped, and is logged. DoQ tests return early when QUIC is unsupported.
  • A direct cap test in src/dotnet/tests/Ninlil.Dhcp.Server.Ra.Tests.
  • New tests bind port 0 (#54 rule).

Acceptance

  • The tests pass 10/10, and each fails when the guard it covers is removed (scratch mutation, notes in the PR).

Source

b23-design.md:248 (routed out); b5-design.md:261; b6-design.md:249.

- **Draft:** BUG-34 - **Priority:** low - **Agent:** protocol-coder - **Depends on:** none - **Decisions:** none ### Why B5-10 tested the transfer rate-limit logic in the runner only, with no DoT/DoQ listener test (`b5-design.md:261`). B6-2's RA pending-reply cap and coalescing has no direct unit test (`b6-design.md:249`). ### What changes - New tests in `src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverTls.Tests` and `src/dotnet/tests/Ninlil.Dns.Protocol.DnsOverQuic.Tests`: an AXFR over the listener beyond the limit is refused or dropped, and is logged. DoQ tests return early when QUIC is unsupported. - A direct cap test in `src/dotnet/tests/Ninlil.Dhcp.Server.Ra.Tests`. - New tests bind port 0 (#54 rule). ### Acceptance - [ ] The tests pass 10/10, and each fails when the guard it covers is removed (scratch mutation, notes in the PR). ### Source `b23-design.md:248` (routed out); `b5-design.md:261`; `b6-design.md:249`.
Sign in to join this conversation.
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
lantea-one/ninlil#55
No description provided.