Files
2026-11-11 14:22:02 +08:00

48 lines
3.7 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
▶ 新公司部门和菜单通过真实 HTTP 独立持久化并隔离医院目录
✔ context 明确区分医院与新公司的结构权限,管理不依赖应用任职 (748.7808ms)
✔ 部门支持空顶级 CRUD、父子约束和公司/种类/历史 ID 隔离 (1834.1039ms)
✔ 菜单 M/C/A、公司权限前缀、父子树与跨种类节点均受约束 (2487.2489ms)
✔ 显式 owner 与源 root 双重条件、公司及祖先状态和任职分离 (4020.4394ms)
✔ Header、body、query 与未知字段无法切换或污染公司范围 (2478.2356ms)
✔ 同一临时 SQLite 跨服务重启保留结构,医院 company1 继续走源 API (1679.9474ms)
✔ 集团关闭后带新公司 Header 的请求不会回退到医院目录 (895.7861ms)
✔ 新公司部门和菜单通过真实 HTTP 独立持久化并隔离医院目录 (14927.2103ms)
PASS company-structure: 600 checks; isolated source, sessions, group SQLite only.
✔ 公司本地部门菜单CRUD、隔离授权、树规则、医院代理与事务审计 (4400.1619ms)
✔ 集团 HTTP 范围与一次性登录流程使用隔离身份源 (2275.2967ms)
PASS group-write-through: 45 checks; actual central services, isolated source transport and temporary stores.
✔ 集团密码与角色写穿原系统、旧会话/SSO 拒绝及公司边界 (2766.6804ms)
PASS role-access: 77 checks; temporary SQLite and synthetic profiles only.
✔ 源角色显式跨公司授权、多角色并集、撤权即时生效及安全菜单投影 (567.9498ms)
PASS role-driven-bridge: 54 isolated service checks
✔ 跨公司角色授权桥接保持源权限、ID隔离和失败收回 (895.022ms)
✔ 真实HTTP通过全局角色目录授予跨公司菜单,任职不构成授权 (1557.6702ms)
▶ shared mode uses an isolated original-API fixture
✔ health advertises shared mode and refuses old demo or missing sessions (202.6797ms)
✔ original case-sensitive login produces independent sessions and forces terminal=1 (337.2241ms)
✔ root navigation contains exactly the four local module projections (89.783ms)
✔ the four management lists map live source fields and options retain disabled grants (262.5385ms)
✔ keyword and disabled filters apply before local pagination when the source ignores them (254.006ms)
✔ every write is denied before the permissive source when original permission is absent (653.701ms)
✔ department permission aliases authorize only the granted original operation (193.3119ms)
✔ editing a user merges fresh original detail and preserves all hidden doctor fields (76.2497ms)
✔ editing a source menu preserves relative paths, unknown components and hidden routing values (83.0099ms)
✔ role edits preserve data_scope when omitted, pass empty grants, and reject unsupported disable=1 (160.3507ms)
✔ unknown operations are 404 even when the original API would default-allow them (146.3903ms)
✔ source revocation is checked on every request and invalidates the bridge (178.2908ms)
✔ first-password gate allows profile, password and logout while rejecting management (424.1806ms)
✔ WeCom binding gate stays active and directs users to the original login (275.9024ms)
✔ logout revokes both original and current bridge sessions and leaves another login valid (236.5534ms)
✔ normal password changes use the atomic original endpoint and revoke all sessions (422.6572ms)
✔ source validation and permission envelope codes map to 422 and 403 (231.6121ms)
✔ non-JSON, invalid protocol, redirects and network failures return sanitized 502 (237.1372ms)
✔ shared mode uses an isolated original-API fixture (4839.2235ms)
ℹ tests 33
ℹ suites 0
ℹ pass 33
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 15150.3647