molecule-core/tests/e2e
Hongming Wang 73b3a455b2 fix(e2e): update test_api.sh for Phase 30.1 tokens + Phase 30.6 discover
The script was stuck on pre-auth API expectations and hadn't been
updated when /registry heartbeat and /registry/discover tightened:

- Phase 30.1 (/registry/heartbeat, /registry/update-card): require
  Authorization: Bearer <token>. The token is returned in the register
  response as auth_token.
- Phase 30.6 (/registry/discover/:id, /registry/:id/peers): require
  X-Workspace-ID caller identity + bearer token on the caller.

Changes:
- Capture ECHO_TOKEN and SUM_TOKEN from /registry/register responses
- Thread Authorization: Bearer on every heartbeat + update-card call
- Assert the new 400 "X-Workspace-ID header is required" rejection for
  the no-caller discover path (previously asserted old success shape)
- Add bearer auth to sibling discover + /peers calls
- Pre-test cleanup: delete all workspaces at script start so count
  assertions are reproducible across back-to-back runs

Result: 62 passed, 0 failed (was 46/62).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 17:08:45 -07:00
..
test_a2a_e2e.sh initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
test_activity_e2e.sh initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
test_api.sh fix(e2e): update test_api.sh for Phase 30.1 tokens + Phase 30.6 discover 2026-04-13 17:08:45 -07:00
test_claude_code_e2e.sh initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00
test_comprehensive_e2e.sh initial commit — Molecule AI platform 2026-04-13 11:55:37 -07:00