datarhei-dragonfork-core/test/whep-client
Zac Gaetano 0417aff3b1
Some checks failed
tests / build (push) Failing after 2s
CodeQL / Analyze (pull_request) Failing after 2s
tests / build (pull_request) Failing after 1s
test(whep-client): add -token flag for JWT-gated /api/v3/whep endpoints
The M2 WHEP route lives under /api/v3 and inherits Core's JWT auth.
The M1 test client was written for the unauth'd PoC port; without
this flag it's useless against the real Core build.

- Subscribe() and postOffer() take a token string; empty means no
  Authorization header (M1 behavior preserved).
- main.go gains a -token flag.
- main_test.go pass empty token (existing tests run against an
  in-process unauth'd handler).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-03 04:59:08 +00:00
..
main.go test(whep-client): add -token flag for JWT-gated /api/v3/whep endpoints 2026-05-03 04:59:08 +00:00
main_test.go test(whep-client): add -token flag for JWT-gated /api/v3/whep endpoints 2026-05-03 04:59:08 +00:00