Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

test: workbench run_tool send is refused once Gmail is read-only

AdityaUmale85a2b4c29525
diff --git a/server/trust-controls.e2e.test.ts b/server/trust-controls.e2e.test.ts
index 66310e76b1..71f3799f8e 100644
--- a/server/trust-controls.e2e.test.ts
+++ b/server/trust-controls.e2e.test.ts
@@ -208,6 +208,7 @@ it("honors outbound approval and Send without asking at Full access, and still r
expect(relayed).toHaveLength(before + 4);
await api("PATCH", `/api/bots/${b.id}`, { connectorScopes: { apps: { gmail: "read" } } });
expect((await relay(token, "GMAIL_SEND_EMAIL")).body.result.isError).toBe(true);
+ expect((await relay(token, "COMPOSIO_REMOTE_WORKBENCH", { code_to_execute: 'run_tool("GMAIL_SEND_EMAIL", {})' })).body.result.isError).toBe(true);
expect(relayed).toHaveLength(before + 4);
});