Commit c4045a1
committed
fix: remove dead token=="" branch and add probeRR HTTP-layer test
adminBearerMiddleware had an unreachable branch (token == "") since admin
routes are only registered when a token is configured. Remove it to
eliminate dead code.
Add TestAdminCreateRecordInvalidMXValue to exercise the probeRR rejection
path at the HTTP layer (malformed MX value → 400).1 parent 4c1ce04 commit c4045a1
2 files changed
Lines changed: 14 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | 149 | | |
156 | 150 | | |
157 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
616 | 616 | | |
617 | 617 | | |
618 | 618 | | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
619 | 633 | | |
620 | 634 | | |
621 | 635 | | |
| |||
0 commit comments