mirror of
https://github.com/paperclipai/paperclip.git
synced 2026-10-26 18:31:34 +01:00
test(gateway): provision grant for elicitation fixtures
Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
1 parent
ce5791dd03
commit
8fa5d2d6b6
1 file changed
+10
@@ -6,6 +6,7 @@ import {
|
||||
agents,
|
||||
approvals,
|
||||
companies,
|
||||
connectionGrants,
|
||||
createDb,
|
||||
heartbeatRuns,
|
||||
issueApprovals,
|
||||
@@ -91,8 +92,17 @@ async function createRemoteMcpToolFixture(db: ReturnType<typeof createDb>, compa
|
||||
status: "active",
|
||||
enabled: true,
|
||||
healthStatus: "ok",
|
||||
credentialPolicy: "shared",
|
||||
config: { url: "https://example.invalid/mcp" },
|
||||
}).returning().then((rows) => rows[0]!);
|
||||
await db.insert(connectionGrants).values({
|
||||
companyId,
|
||||
connectionId: connection.id,
|
||||
kind: "organization",
|
||||
credentialSecretRefs: [],
|
||||
status: "active",
|
||||
isDefault: true,
|
||||
});
|
||||
const catalogEntry = await db.insert(toolCatalogEntries).values({
|
||||
companyId,
|
||||
applicationId: application.id,
|
||||
|
||||
Reference in new issue
Block a user