docs: split inbox test plans into case files
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Case: `renew-rejects-without-active-lease`
|
||||
|
||||
## 用例意义
|
||||
|
||||
验证线程没有活跃租约时,`renew` 会明确失败。
|
||||
|
||||
## 前置条件
|
||||
|
||||
- 已存在线程 `THREAD_ID`
|
||||
- 该线程当前没有活跃 lease
|
||||
|
||||
## 输入
|
||||
|
||||
```bash
|
||||
inbox --db TMPDIR/coord.db --json renew --agent worker-c --thread THREAD_ID --lease-seconds 600
|
||||
```
|
||||
|
||||
## 预期输出
|
||||
|
||||
- 退出码为 `30`
|
||||
- JSON 错误码为 `invalid_state`
|
||||
|
||||
## 断言结论
|
||||
|
||||
- `renew` 依赖已有活跃租约
|
||||
- 没有 lease 属于状态错误,不是 not-found
|
||||
Reference in New Issue
Block a user