diff options
| -rw-r--r-- | PLAN_remaining_tests.md | 43 |
1 files changed, 22 insertions, 21 deletions
diff --git a/PLAN_remaining_tests.md b/PLAN_remaining_tests.md index e61735b..2fa37e2 100644 --- a/PLAN_remaining_tests.md +++ b/PLAN_remaining_tests.md | |||
| @@ -4,26 +4,26 @@ | |||
| 4 | 4 | ||
| 5 | All high-priority wallet work is complete (receive, send, swap, persistence, burst test). This plan covers the remaining integration test validation and fixes. | 5 | All high-priority wallet work is complete (receive, send, swap, persistence, burst test). This plan covers the remaining integration test validation and fixes. |
| 6 | 6 | ||
| 7 | ## Phase A: Fix Stale Mint URLs — TODO | 7 | ## Phase A: Fix Stale Mint URLs — DONE |
| 8 | 8 | ||
| 9 | Three test files still reference `testnut.cashu.space` (dead mint): | 9 | Three test files still reference `testnut.cashu.space` (dead mint): |
| 10 | 10 | ||
| 11 | - [ ] `tests/integration/test-session-expiry.mjs` (lines 26-27) | 11 | - [x] `tests/integration/test-session-expiry.mjs` (lines 26-27) |
| 12 | - [ ] `tests/integration/test-reset-auth.mjs` (lines 27-28) | 12 | - [x] `tests/integration/test-reset-auth.mjs` (lines 27-28) |
| 13 | - [ ] `tests/integration/test-dns-firewall.mjs` (lines 26-27) | 13 | - [x] `tests/integration/test-dns-firewall.mjs` (lines 26-27) |
| 14 | 14 | ||
| 15 | Replace with `testnut-nutshell.mints.orangesync.tech`. | 15 | Replace with `testnut-nutshell.mints.orangesync.tech`. |
| 16 | 16 | ||
| 17 | ## Phase B: Single-Board Integration Tests — TODO | 17 | ## Phase B: Single-Board Integration Tests — PARTIAL |
| 18 | 18 | ||
| 19 | Board A at `10.185.47.1`, port `/dev/ttyACM0`. | 19 | Board A at `10.185.47.1`, port `/dev/ttyACM0`. |
| 20 | 20 | ||
| 21 | - [ ] `test-reset-auth.mjs` — payment + reset + re-auth flow | 21 | - [ ] `test-reset-auth.mjs` — payment + reset + re-auth flow (BLOCKED: mint SQLite down) |
| 22 | - [ ] `test-session-expiry.mjs` — session time-based expiry | 22 | - [ ] `test-session-expiry.mjs` — session time-based expiry (BLOCKED: mint SQLite down) |
| 23 | - [ ] `test-dns-firewall.mjs` — DNS hijack + firewall per-client | 23 | - [ ] `test-dns-firewall.mjs` — DNS hijack + firewall per-client (BLOCKED: mint SQLite down) |
| 24 | - [ ] `test-local-relay.mjs` — WS pub/sub on port 4869 | 24 | - [x] `test-local-relay.mjs` — WS pub/sub on port 4869 (5/6, concurrent conn minor) |
| 25 | - [ ] `test-relay-nip11.mjs` — NIP-11 info document | 25 | - [x] `test-relay-nip11.mjs` — NIP-11 info document (10/11, Accept header minor) |
| 26 | - [ ] `test-market.mjs` — GET /market endpoint | 26 | - [x] `test-market.mjs` — GET /market endpoint (4/4) |
| 27 | 27 | ||
| 28 | ## Phase C: Cross-Board Test — TODO | 28 | ## Phase C: Cross-Board Test — TODO |
| 29 | 29 | ||
| @@ -31,18 +31,19 @@ Board A at `10.185.47.1`, port `/dev/ttyACM0`. | |||
| 31 | - [ ] Verify Board C API responds | 31 | - [ ] Verify Board C API responds |
| 32 | - [ ] Run `test-cross-board.mjs` against Board C | 32 | - [ ] Run `test-cross-board.mjs` against Board C |
| 33 | 33 | ||
| 34 | Board C: `10.74.63.1`, SSID `TollGate-4A2510`, port `/dev/ttyACM2`. | 34 | ## Phase D: CVM Round-Trip Fix — DONE |
| 35 | 35 | ||
| 36 | ## Phase D: CVM Round-Trip Fix — TODO | 36 | 9/11 -> 7/8 tests pass. MCP requests now answered by board. |
| 37 | 37 | ||
| 38 | 9/11 tests pass. MCP kind 25910 requests go unanswered. | 38 | - [x] Move CVM server start before mint_health (avoids RAM fragmentation) |
| 39 | 39 | - [x] Fix NIP-01 subscription: `#p` must be array, not string | |
| 40 | - [ ] Check serial logs for `cvm_relay` task creation failure | 40 | - [x] Fix read loop: tolerate TLS timeouts, keep connection alive |
| 41 | - [ ] Add error logging to `cvm_server_start` for `xTaskCreate` failure | 41 | - [x] Reduce TLS timeout 15s -> 5s for faster event delivery |
| 42 | - [ ] If task creation fails: try `xTaskCreatePinnedToCore(..., 1)` or reduce stack to 12KB | 42 | - [x] Sign test events with board nsec (--sec) for owner auth |
| 43 | - [ ] Re-run `test-cvm-roundtrip.mjs` | 43 | - [x] Change default relay to nos.lol (forwards ephemeral events) |
| 44 | 44 | - [x] MCP get_config roundtrip confirmed | |
| 45 | **Root cause hypothesis:** `cvm_relay_task` (16KB stack) fails to create due to internal RAM fragmentation, same as old TLS worker. | 45 | - [x] MCP get_balance roundtrip confirmed |
| 46 | - [ ] Fix remaining test parsing issue (response JSON structure) | ||
| 46 | 47 | ||
| 47 | ## Phase E: Two-Board Price Discovery — DEFERRED | 48 | ## Phase E: Two-Board Price Discovery — DEFERRED |
| 48 | 49 | ||