From f3051fb53662eb3f71bac8fac77926937eb77d30 Mon Sep 17 00:00:00 2001 From: cflmy Date: Tue, 22 Sep 2026 15:20:48 +0800 Subject: [PATCH] fix(test): align P3 gold with quiet-admin gate semantics b752cd4 stopped auto-gating admin_prefix when admin=false but did not update the P3 gold, which still expected the removed /admin auto gate (ng >= 2). Assert the new intent instead: exactly one explicit gate registered with the declared path. Co-authored-by: Cursor --- tests/ext/web-p3-smoke.mq.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ext/web-p3-smoke.mq.md b/tests/ext/web-p3-smoke.mq.md index c1b19ae..ad071c5 100644 --- a/tests/ext/web-p3-smoke.mq.md +++ b/tests/ext/web-p3-smoke.mq.md @@ -90,7 +90,8 @@ import json:lib/json.mq.md **app = > `app`.gate path="/write*" roles="admin,author"** **gates = [gates](app)** **ng = > len value=`gates`** -1. `ng` >= 2 +**gpath = [path]([1](gates))** +1. `ng` == 1 and `gpath` == "/write*" > print text=rbac-gate-ok 2. * > print text=rbac-gate-fail