Skip to content

test(conformance): add 22-case gateway conformance test suite - #209

Merged
imran-siddique merged 1 commit into
mainfrom
feat/conformance-test-runner
Jun 6, 2026
Merged

imran-siddique merged 1 commit into
mainfrom
feat/conformance-test-runner

Conversation

@imran-siddique

Copy link
Copy Markdown
Member

Summary

22-case conformance test suite validating cMCP gateway protocol compliance. Tests run against an in-process Starlette TestClient fixture with minimal mock dependencies.

MCP Protocol (8 tests): health, initialize, tools/list GET, tools/call allow/deny/unknown, parse error, method-not-found, tools/list via MCP method

TRACE Claim (5 tests): trace-claim 404, trace-claim 501 (no session manager), audit-export 501, audit-export missing ?session_id → 400, session-reset 501

Policy enforcement (5 tests): allowed result with _cmcp metadata, denied → 403 + POLICY_DENY code, call_id is UUID, audit_entry_hash present, deny message non-empty

Session management (4 tests): reset returns old/new IDs, wrong ID → 404, reset clears attestation_stale, health exempt from bearer auth

Closes #75

🤖 Generated with Claude Code

Adds tests/conformance/test_gateway_conformance.py with all 22 cases
from the GTC Berlin demo spec: MCP protocol (8), TRACE Claim (5), policy
enforcement (5), and session management (4). Also adds
POST /sessions/{id}/reset to MCPServer with 501/404/200 behaviour to
satisfy the session reset conformance group.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@imran-siddique
imran-siddique force-pushed the feat/conformance-test-runner branch from b02580e to 2cf9c87 Compare June 6, 2026 21:41
@imran-siddique
imran-siddique merged commit cfb0a4a into main Jun 6, 2026
7 checks passed
@imran-siddique
imran-siddique deleted the feat/conformance-test-runner branch July 29, 2026 23:19
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.

[testing] Conformance test runner — 22 test cases against a live gateway

1 participant