Repository navigation
Commit 756da1a
committed
test: retire stale connections scenario tests (command removed in #221)
The `hotdata connections` command was removed in #221 (all commands scoped to the
active database), but two scenario tests kept calling it:
- `tests/connections_read.rs` — calls the removed `connections list`/`<id>`. It
only existed to satisfy scenario-parity's file-existence check and skips in CI
(no `HOTDATA_SDK_TEST_CONNECTION_ID`), so it was dead. The scenario has no CLI
equivalent; a companion www.hotdata.dev PR opts the CLI out of it. Deleted.
- `tests/auth_unknown_workspace.rs` — a security scenario (a fabricated workspace
id must be rejected, no cross-workspace leak). It also called `connections
list`, so it exited non-zero at *arg-parse* — passing for the wrong reason and
never actually exercising the server rejection. Switched to `databases list`, a
real workspace-scoped listing that reaches the gateway with the fabricated
workspace id, restoring genuine coverage.
Depends on hotdata-dev/www.hotdata.dev#290 (opts the CLI out of connections_read)
merging first, or scenario-parity will still require the deleted file.1 parent 2dc678e commit 756da1a
2 files changed
Lines changed: 9 additions & 52 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
8 | 14 | | |
9 | 15 | | |
10 | 16 | | |
| |||
21 | 27 | | |
22 | 28 | | |
23 | 29 | | |
24 | | - | |
| 30 | + | |
25 | 31 | | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
29 | 35 | | |
30 | | - | |
| 36 | + | |
31 | 37 | | |
32 | 38 | | |
33 | 39 | | |
| |||
39 | 45 | | |
40 | 46 | | |
41 | 47 | | |
42 | | - | |
| 48 | + | |
43 | 49 | | |
44 | 50 | | |
This file was deleted.
0 commit comments