Author orch Markdown test plan
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
# Case: `council-report-rejects-invalid-show`
|
||||
|
||||
## 用例意义
|
||||
|
||||
验证 `council report --show` 对非法 bucket 值返回稳定的 `invalid_input`,避免 leader 误以为未知 bucket 会被静默忽略。
|
||||
|
||||
## 前置条件
|
||||
|
||||
- 已按 `council-report-defaults-to-consensus-and-majority` 的前置流程完成 reviewer 输出与 `council tally`
|
||||
- 运行 ID 为 `council_blog_report_001`
|
||||
|
||||
## 输入
|
||||
|
||||
```bash
|
||||
orch --db TMPDIR/coord.db --json council report \
|
||||
--run council_blog_report_001 \
|
||||
--show consensus,invalid
|
||||
```
|
||||
|
||||
## 预期输出
|
||||
|
||||
- 退出码为 `30`
|
||||
- JSON 错误码为 `invalid_input`
|
||||
- 错误消息说明 `--show` 只接受 `consensus`、`majority`、`minority` 或 `all`
|
||||
|
||||
## 断言结论
|
||||
|
||||
- `--show` 不是宽松过滤参数;未知 bucket 会触发显式输入错误
|
||||
- leader 侧脚本可以依赖这一点来尽早发现错误配置,而不是事后对空报告排障
|
||||
Reference in New Issue
Block a user