OSMOKE1 修复 OA-only smoke 账号治理

这个提交包含在:
2026-05-23 14:46:14 +08:00
父节点 88b06346da
当前提交 5a64809004
共修改 15 个文件,包含 1209 行新增和 13 行删除
@@ -64,6 +64,28 @@ describe("audit-wecom-oa-user-consistency", () => {
});
});
it("exempts default OA-only smoke accounts from WeCom-missing findings", () => {
const report = buildConsistencyReport({
oaEmployees: [
employee({
employeeNo: "T0001",
name: "OA smoke admin",
email: "[email protected]",
wecomExternalUserId: "",
}),
],
wecomProfiles: [],
});
expect(report.status).toBe("PASS_NO_DRIFT");
expect(count(report, "oaOnlySmokeExempted")).toBe(1);
expect(count(report, "oaActiveMissingInWecom")).toBe(0);
expect(report.findings.oaOnlySmokeExempted[0]).toMatchObject({
employeeNo: "T0001",
reason: "oa_only_smoke_no_wecom_account_required",
});
});
it("classifies WeCom active profiles missing from OA", () => {
const report = buildConsistencyReport({
oaEmployees: [],