Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | # Tool Router Session Files E2E Test |
| 2 | |
| 3 | End-to-end test for the Tool Router session files mount API (list, upload, download, delete). |
| 4 | |
| 5 | ## Prerequisites |
| 6 | |
| 7 | - Docker (for running tests in containers) |
| 8 | - `COMPOSIO_API_KEY` environment variable |
| 9 | |
| 10 | ## Running |
| 11 | |
| 12 | ```bash |
| 13 | # From repo root |
| 14 | COMPOSIO_API_KEY=your_key pnpm test:e2e:node --filter=@e2e-tests/node-tool-router-files |
| 15 | |
| 16 | # Or from this directory |
| 17 | COMPOSIO_API_KEY=your_key bun test e2e.test.ts |
| 18 | ``` |
| 19 | |
| 20 | ## What it tests |
| 21 | |
| 22 | 1. **Create session** – Creates a minimal tool router session |
| 23 | 2. **Upload** – Uploads a text buffer with `remotePath` and `mimetype` |
| 24 | 3. **List** – Lists files at mount root and verifies the uploaded file appears |
| 25 | 4. **Download** – Downloads the file and verifies content |
| 26 | 5. **Delete** – Deletes the file |