Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace WireMock with okhttp3:mockwebserver #291

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

oneonestar
Copy link
Member

@oneonestar oneonestar commented Mar 27, 2024

Description

Part of #41

Replace WireMock with okhttp3:mockwebserver.
Trino is also using okhttp3:mockwebserver for testing.
WireMock depends on jetty 11 which is incompatible with Airlift (jetty 12 & EE 10).

TODO

Update okhttp3 to the latest version (3.14.9 -> 4.12.0).

Side effect:
New version of okhttp3 won't send Authorization header after a redirect. (See: trinodb/trino#21026)
This might break credentials-based authentication if anyone is using:
Trino-gateway -> (some proxy with redirect mode) -> Trino.
Needs to override this behavior and always send Authorization header.

ConnectHandler and proxy ServletHolder might not be affect => need to verify.

Release notes

(x) This is not user-visible or is docs only, and no release notes are required.

@cla-bot cla-bot bot added the cla-signed label Mar 27, 2024
@oneonestar oneonestar marked this pull request as ready for review March 27, 2024 14:29
@oneonestar oneonestar requested a review from wendigo March 27, 2024 14:30
@wendigo wendigo merged commit afa210d into trinodb:main Mar 27, 2024
2 checks passed
@github-actions github-actions bot added this to the 8 milestone Mar 27, 2024
@mosabua
Copy link
Member

mosabua commented Mar 27, 2024

VERY NICE!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants