Skip to content

Add mock HTTP server tests for bearer token authentication#101

Merged
SeanTAllen merged 1 commit intomainfrom
sean/test-bearer-token-auth-headers
Mar 3, 2026
Merged

Add mock HTTP server tests for bearer token authentication#101
SeanTAllen merged 1 commit intomainfrom
sean/test-bearer-token-auth-headers

Conversation

@SeanTAllen
Copy link
Copy Markdown
Member

All existing request actor tests create Credentials without a token, so the
Authorization: Bearer <token> header path was never exercised. These two
tests verify the header is present when a token is provided and absent when
it isn't, by inspecting the raw HTTP request in the mock server's responder
function.

Design: #98

All existing request actor tests create Credentials without a token,
so the Authorization: Bearer header path was never exercised. These
two tests verify the header is present when a token is provided and
absent when it isn't by inspecting the raw HTTP request in the mock
server's responder function.

Design: #98
@ponylang-main ponylang-main added the discuss during sync Should be discussed during an upcoming sync label Mar 3, 2026
@SeanTAllen SeanTAllen merged commit f95233c into main Mar 3, 2026
10 checks passed
@SeanTAllen SeanTAllen deleted the sean/test-bearer-token-auth-headers branch March 3, 2026 18:19
@ponylang-main ponylang-main removed the discuss during sync Should be discussed during an upcoming sync label Mar 3, 2026
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.

2 participants