test: keep connection rollback retry drafts unbound (#23560)

Align the rollback retry test with draft resume. Preserve the catalog rollback and public identity checks.

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DottaandPaperclip authored and GitHub committed 2026-12-02 22:56:20 +00:00
1 parent 85b9586dd5
commit 53bebb59f9
1 file changed
+3 -2
@@ -2047,8 +2047,9 @@ describeEmbeddedPostgres("generic remote MCP connections", () => {
} }
const retry = await service.connectGalleryApp(company.id, { ...input, resumeConnectionId: first.connectionId }, actor); const retry = await service.connectGalleryApp(company.id, { ...input, resumeConnectionId: first.connectionId }, actor);
expect(retry.catalog).toHaveLength(3); expect(retry.catalog).toHaveLength(3);
await expect(db.select().from(toolProfiles).where(eq(toolProfiles.companyId, company.id))).resolves.toHaveLength(1); await expect(service.getConnection(first.connectionId)).resolves.toMatchObject({ status: "draft", credentialPolicy: "per_user" });
await expect(db.select().from(toolProfileBindings).where(eq(toolProfileBindings.companyId, company.id))).resolves.toHaveLength(1); await expect(db.select().from(toolProfiles).where(eq(toolProfiles.companyId, company.id))).resolves.toHaveLength(0);
await expect(db.select().from(toolProfileBindings).where(eq(toolProfileBindings.companyId, company.id))).resolves.toHaveLength(0);
}); });
it("creates an empty user grant after a personal public URL probe succeeds", async () => { it("creates an empty user grant after a personal public URL probe succeeds", async () => {