mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-20 14:12:59 +03:00
chore: remove unused audit action type (#5382)
Integrated into release/v3.8.42
This commit is contained in:
@@ -50,8 +50,6 @@ export const HIGH_LEVEL_ACTIONS = [
|
||||
"quota.store.driver_changed",
|
||||
] as const;
|
||||
|
||||
export type HighLevelAction = (typeof HIGH_LEVEL_ACTIONS)[number];
|
||||
|
||||
const SET: ReadonlySet<string> = new Set<string>(HIGH_LEVEL_ACTIONS);
|
||||
|
||||
export function isHighLevelAction(action: string): boolean {
|
||||
|
||||
@@ -5,6 +5,13 @@ import { HIGH_LEVEL_ACTIONS, isHighLevelAction } from "../../src/lib/audit/highL
|
||||
|
||||
const ALL = HIGH_LEVEL_ACTIONS as readonly string[];
|
||||
|
||||
test("high-level actions module exposes runtime allowlist helpers", async () => {
|
||||
const mod = await import("../../src/lib/audit/highLevelActions");
|
||||
|
||||
assert.equal(Array.isArray(mod.HIGH_LEVEL_ACTIONS), true);
|
||||
assert.equal(typeof mod.isHighLevelAction, "function");
|
||||
});
|
||||
|
||||
// B/G3: allowlist aligned with logAuditEvent emitters (27 after batch_updated).
|
||||
test("HIGH_LEVEL_ACTIONS has exactly 27 entries", () => {
|
||||
assert.equal(ALL.length, 27);
|
||||
|
||||
Reference in New Issue
Block a user