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