test(backend): add Composio Calendar live-tool fakes

This commit is contained in:
Anish Sarkar 2026-05-07 03:41:47 +05:30
parent a2af4be359
commit bc2dc21a75
4 changed files with 140 additions and 0 deletions

View file

@ -19,6 +19,7 @@ export const CANARY_TOKENS = {
driveRoadmap: "SURFSENSE_E2E_ROADMAP_MARKER",
driveArchive: "SURFSENSE_E2E_ARCHIVE_MARKER",
gmailCanary: "SURFSENSE_E2E_CANARY_TOKEN_GMAIL_001",
calendarCanary: "SURFSENSE_E2E_CANARY_TOKEN_CALENDAR_001",
} as const;
/**
@ -65,6 +66,23 @@ export const FAKE_GMAIL_MESSAGES = {
},
} as const;
/**
* Fake Calendar event IDs that match what the backend fake returns from
* GOOGLECALENDAR_EVENTS_LIST.
*/
export const FAKE_CALENDAR_EVENTS = {
canary: {
id: "fake-calendar-event-canary-001",
summary: "E2E Canary Calendar Event",
location: "SurfSense E2E Room",
},
planning: {
id: "fake-calendar-event-planning-001",
summary: "E2E Planning Sync",
location: "SurfSense Planning Room",
},
} as const;
/** Generate a unique-per-run search space name. Keeps parallel tests isolated. */
export function uniqueSearchSpaceName(prefix = "e2e"): string {
return `${prefix}-${randomUUID().slice(0, 8)}`;