OSMOKE1 修复 OA-only smoke 账号治理
这个提交包含在:
@@ -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: [],
|
||||
|
||||
在新工单中引用
屏蔽一个用户