mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 13:31:23 +00:00
Co-authored-by: Shawn <shenghuikevin@shenghuideMac-mini.local> Co-authored-by: 不做了睡大觉 <user@example.com> Co-authored-by: Marcus Widing <widing.marcus@gmail.com>
This commit is contained in:
@@ -120,4 +120,23 @@ describe("tools invoke HTTP denylist", () => {
|
||||
|
||||
expect(cronRes.status).toBe(200);
|
||||
});
|
||||
|
||||
it("keeps cron available under coding profile without exposing gateway", async () => {
|
||||
cfg = {
|
||||
tools: {
|
||||
profile: "coding",
|
||||
},
|
||||
gateway: {
|
||||
tools: {
|
||||
allow: ["cron"],
|
||||
},
|
||||
},
|
||||
};
|
||||
|
||||
const cronRes = await invoke("cron");
|
||||
const gatewayRes = await invoke("gateway");
|
||||
|
||||
expect(cronRes.status).toBe(200);
|
||||
expect(gatewayRes.status).toBe(404);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user