(client: Client, slug: IntegrationSlug)
| 59 | /** Register an apiKey-authenticated integration under an EXACT slug, so both |
| 60 | * orgs can hold the same catalog identity. */ |
| 61 | const registerIntegration = (client: Client, slug: IntegrationSlug) => |
| 62 | client.openapi.addSpec({ |
| 63 | payload: { |
| 64 | spec: { kind: "blob", value: pingSpec }, |
| 65 | slug, |
| 66 | baseUrl: "http://127.0.0.1:59999", // never contacted during registration |
| 67 | authenticationTemplate: [ |
| 68 | { |
| 69 | slug: "apiKey", |
| 70 | type: "apiKey", |
| 71 | headers: { authorization: ["Bearer ", { type: "variable", name: "token" }] }, |
| 72 | }, |
| 73 | ], |
| 74 | }, |
| 75 | }); |
| 76 | |
| 77 | scenario( |
| 78 | "Connect · an org-scoped connect link lands a multi-org recipient in the SENDING org", |
no outgoing calls
no test coverage detected