mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-19 05:50:47 +00:00
test: merge audit trust exposure cases
This commit is contained in:
@@ -3349,7 +3349,7 @@ description: test skill
|
||||
}
|
||||
});
|
||||
|
||||
it("evaluates open-group exposure findings", async () => {
|
||||
it("evaluates trust-model exposure findings", async () => {
|
||||
const cases = [
|
||||
{
|
||||
name: "flags open groupPolicy when tools.elevated is enabled",
|
||||
@@ -3426,18 +3426,6 @@ description: test skill
|
||||
).toBe(false);
|
||||
},
|
||||
},
|
||||
] as const;
|
||||
|
||||
await Promise.all(
|
||||
cases.map(async (testCase) => {
|
||||
const res = await audit(testCase.cfg);
|
||||
testCase.assert(res);
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
it("evaluates multi-user trust-model heuristics", async () => {
|
||||
const cases = [
|
||||
{
|
||||
name: "warns when config heuristics suggest a likely multi-user setup",
|
||||
cfg: {
|
||||
|
||||
Reference in New Issue
Block a user