Repository navigation
Commit 5cdecbf
committed
[CON-906] Close the three free RPC Test: gaps, and one wrong claim
These were the three remaining assertable and free examples in
cli-reference.md. All three now carry a Test: line. Coverage goes from
5 of 33 runnable blocks to 8.
Two live findings, both response-shape defects that fail silently.
`qn rpc call -o json` prints the JSON-RPC result unwrapped. There is no
jsonrpc, id, or result field. Code that reads `.result` on it gets
undefined.
`qn rpc list-networks -o json` returns `{"networks": [...]}`. That is a
sixth distinct CLI response shape and it is not the `data` envelope the
other list commands use, so `.data` is undefined.
Also corrects a claim this branch added in b4640c0. The piped-output
default is not universal. `qn rpc list-networks` prints a bare
newline-separated list even when piped, with no JSON, so a script that
pipes it and parses JSON fails. Verified: endpoint list, chain list and
kv set list all print `{` when piped; rpc list-networks prints `0`. The
Test: line now names all four commands and the exception.
The asserted network count is dated in the line and marked as growing,
because it drifts. The block-object assertion names the key range and
the missing envelope rather than a field count, for the same reason.
Verified live against account 464482. All calls read-only and free. No
resource created.1 parent b4640c0 commit 5cdecbf
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
69 | 73 | | |
70 | 74 | | |
71 | 75 | | |
72 | 76 | | |
73 | 77 | | |
74 | 78 | | |
75 | | - | |
| 79 | + | |
76 | 80 | | |
77 | 81 | | |
78 | 82 | | |
| |||
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
125 | 134 | | |
126 | 135 | | |
127 | 136 | | |
| |||
142 | 151 | | |
143 | 152 | | |
144 | 153 | | |
| 154 | + | |
| 155 | + | |
145 | 156 | | |
146 | 157 | | |
147 | 158 | | |
| |||
150 | 161 | | |
151 | 162 | | |
152 | 163 | | |
| 164 | + | |
| 165 | + | |
153 | 166 | | |
154 | 167 | | |
155 | 168 | | |
| |||
0 commit comments