Add Phase 2 integration tests for SessionDO internal endpoints#75
Add Phase 2 integration tests for SessionDO internal endpoints#75ColeMurray merged 2 commits intomainfrom
Conversation
Expand integration test coverage from 14 to 45 tests by exercising the SessionDO's internal HTTP endpoints through the real workerd runtime: prompt enqueueing, sandbox event processing, WS token generation, participant management, event/message listing with pagination, session archive/unarchive, and sandbox token verification. Add dummy MODAL_API_SECRET and MODAL_WORKSPACE bindings to unblock lifecycle manager initialization during tests.
Terraform Validation Results
Pushed by: @ColeMurray, Action: |
Greptile OverviewGreptile SummaryExpands integration test coverage for SessionDO internal endpoints by adding 31 new tests across 5 test files, bringing total coverage from 14 to 45 tests. The new tests systematically verify all internal HTTP endpoints ( Key improvements:
Minor issue found:
|
Update queryDO helper to accept bind params and replace all template-literal SQL with ? placeholders to match production patterns.
Terraform Validation Results
Pushed by: @ColeMurray, Action: |
Summary
workerdruntimeinitSession,queryDO,seedEvents,seedMessage) to reduce boilerplate across test filesMODAL_API_SECRETandMODAL_WORKSPACEminiflare bindings to unblock lifecycle manager initialization during testsNew Test Files
prompt-enqueue.test.tssandbox-events.test.tsws-token-participants.test.tsevents-messages-list.test.tssession-lifecycle.test.tsTest plan
npm run test:integration -w @open-inspect/control-plane)npm test -w @open-inspect/control-plane).github/workflows/ci.yml)