test(e2e): wire PDF metadata into connector fixture JSONs

This commit is contained in:
Anish Sarkar 2026-05-09 05:02:40 +05:30
parent fc32ab0cf3
commit ad226853e5
3 changed files with 209 additions and 153 deletions

View file

@ -28,6 +28,22 @@
"modifiedTime": "2025-02-10T11:00:00.000Z", "modifiedTime": "2025-02-10T11:00:00.000Z",
"createdTime": "2025-02-10T11:00:00.000Z" "createdTime": "2025-02-10T11:00:00.000Z"
}, },
{
"id": "fake-file-pdf-native",
"name": "e2e-canary.pdf",
"mimeType": "application/pdf",
"size": 735,
"modifiedTime": "2025-02-10T11:05:00.000Z",
"createdTime": "2025-02-10T11:05:00.000Z"
},
{
"id": "fake-file-pdf-composio",
"name": "e2e-composio-canary.pdf",
"mimeType": "application/pdf",
"size": 748,
"modifiedTime": "2025-02-10T11:10:00.000Z",
"createdTime": "2025-02-10T11:10:00.000Z"
},
{ {
"id": "fake-file-budget", "id": "fake-file-budget",
"name": "Q1-Budget.csv", "name": "Q1-Budget.csv",
@ -75,5 +91,9 @@
"fake-file-budget": "Quarter,Revenue,Expenses\nQ1,100000,75000\nSURFSENSE_E2E_BUDGET_MARKER,2025,test", "fake-file-budget": "Quarter,Revenue,Expenses\nQ1,100000,75000\nSURFSENSE_E2E_BUDGET_MARKER,2025,test",
"fake-file-roadmap": "# 2025 Roadmap\n\n- E2E Drive indexing\n- Composio Gmail/Calendar SURFSENSE_E2E_ROADMAP_MARKER", "fake-file-roadmap": "# 2025 Roadmap\n\n- E2E Drive indexing\n- Composio Gmail/Calendar SURFSENSE_E2E_ROADMAP_MARKER",
"fake-file-old-notes": "Old meeting notes archived in 2024. SURFSENSE_E2E_ARCHIVE_MARKER" "fake-file-old-notes": "Old meeting notes archived in 2024. SURFSENSE_E2E_ARCHIVE_MARKER"
},
"_file_binary_paths": {
"fake-file-pdf-native": "binary/drive-canary.pdf",
"fake-file-pdf-composio": "binary/composio-drive-canary.pdf"
} }
} }

View file

@ -11,9 +11,24 @@
"server_modified": "2026-05-08T00:00:00Z", "server_modified": "2026-05-08T00:00:00Z",
"client_modified": "2026-05-08T00:00:00Z", "client_modified": "2026-05-08T00:00:00Z",
"content_hash": "fake-dropbox-hash-001" "content_hash": "fake-dropbox-hash-001"
},
{
".tag": "file",
"id": "id:fake-dropbox-pdf-canary",
"name": "e2e-dropbox-canary.pdf",
"path_lower": "/e2e-dropbox-canary.pdf",
"path_display": "/e2e-dropbox-canary.pdf",
"size": 727,
"is_downloadable": true,
"server_modified": "2026-05-08T00:05:00Z",
"client_modified": "2026-05-08T00:05:00Z",
"content_hash": "fake-dropbox-hash-pdf-001"
} }
], ],
"_file_contents": { "_file_contents": {
"/e2e-dropbox-canary.txt": "Canary token for Dropbox E2E tests: SURFSENSE_E2E_CANARY_TOKEN_DROPBOX_001\nThis file proves the Dropbox indexing pipeline ran end-to-end." "/e2e-dropbox-canary.txt": "Canary token for Dropbox E2E tests: SURFSENSE_E2E_CANARY_TOKEN_DROPBOX_001\nThis file proves the Dropbox indexing pipeline ran end-to-end."
},
"_file_binary_paths": {
"/e2e-dropbox-canary.pdf": "binary/dropbox-canary.pdf"
} }
} }

View file

@ -32,6 +32,24 @@
"createdDateTime": "2025-02-10T11:00:00Z", "createdDateTime": "2025-02-10T11:00:00Z",
"lastModifiedDateTime": "2025-02-10T11:00:00Z", "lastModifiedDateTime": "2025-02-10T11:00:00Z",
"webUrl": "https://onedrive.example/fake/e2e-onedrive-canary.txt" "webUrl": "https://onedrive.example/fake/e2e-onedrive-canary.txt"
},
{
"id": "fake-onedrive-pdf-canary",
"name": "e2e-onedrive-canary.pdf",
"size": 730,
"file": {
"mimeType": "application/pdf",
"hashes": {
"quickXorHash": "fake-onedrive-pdf-canary-qxh"
}
},
"parentReference": {
"id": "root",
"path": "/drive/root:"
},
"createdDateTime": "2025-02-10T11:05:00Z",
"lastModifiedDateTime": "2025-02-10T11:05:00Z",
"webUrl": "https://onedrive.example/fake/e2e-onedrive-canary.pdf"
} }
], ],
"fake-onedrive-folder-projects": [ "fake-onedrive-folder-projects": [
@ -57,5 +75,8 @@
"_file_contents": { "_file_contents": {
"fake-onedrive-canary": "Canary token for OneDrive E2E tests: SURFSENSE_E2E_CANARY_TOKEN_ONEDRIVE_001\nThis file proves the OneDrive indexing pipeline ran end-to-end.", "fake-onedrive-canary": "Canary token for OneDrive E2E tests: SURFSENSE_E2E_CANARY_TOKEN_ONEDRIVE_001\nThis file proves the OneDrive indexing pipeline ran end-to-end.",
"fake-onedrive-roadmap": "# OneDrive Roadmap\n\n- E2E OneDrive indexing\n- Deterministic Graph fake" "fake-onedrive-roadmap": "# OneDrive Roadmap\n\n- E2E OneDrive indexing\n- Deterministic Graph fake"
},
"_file_binary_paths": {
"fake-onedrive-pdf-canary": "binary/onedrive-canary.pdf"
} }
} }