Skip to content

Add E2E integration test for Cartridge API server#448

Draft
kariy wants to merge 3 commits intomainfrom
test/cartridge-controller
Draft

Add E2E integration test for Cartridge API server#448
kariy wants to merge 3 commits intomainfrom
test/cartridge-controller

Conversation

@kariy
Copy link
Member

@kariy kariy commented Mar 2, 2026

This test validates the full Cartridge controller flow end-to-end against a local Katana node loaded from the pre-migrated spawn-and-move DB: authenticating a controller account via the real Cartridge API (api.cartridge.gg), routing transactions through a real paymaster sidecar, and executing Dojo contract functions (spawn/move) on-chain via outside execution (SNIP-9). The controller CLI is used as a convenient interface to drive the flow, standing in for what would normally be the web-based controller UI.

The test is a standalone binary at tests/controller/ and gracefully skips (exit 0) when prerequisites are missing.

A cartridge feature was added to katana-utils to allow TestNode to be built with full Cartridge API support.

🤖 Generated with Claude Code

kariy and others added 3 commits March 2, 2026 16:34
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Instead of constructing session files from env vars, copy the actual
controller CLI storage directory and rewrite session_rpc_url to point
at the local Katana node. This matches the real file layout the CLI
uses (@cartridge/ directory structure with typed JSON envelopes).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant