Commit 64b7b6e
add REST transport to bridge xt/ tests against v3 API
NicTool::Transport::REST maps v2 RPC-style method calls to v3 REST
endpoints with JWT auth, parameter name translation, and response
flattening. The transport passes all v2 fields through to v3 so that
validation mismatches surface as clear test failures rather than being
silently suppressed.
Updated xt/ test credentials to satisfy v3's stricter validation
(valid emails, strong passwords). Added env var support to NicToolTest
and NicTool so tests can select REST transport without code changes.
Results against v3: 5816/5996 pass (97%). Remaining 180 failures map
to unimplemented v3 features (delegation, zone delegation permissions).
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 7d0bacf commit 64b7b6e
9 files changed
Lines changed: 530 additions & 66 deletions
File tree
- server
- api/lib
- NicTool
- Transport
- t
- xt
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
99 | 98 | | |
100 | 99 | | |
101 | 100 | | |
102 | | - | |
103 | | - | |
| 101 | + | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments