Skip to content

Conversation

@jackwotherspoon
Copy link
Collaborator

This PR improves the local server used for unit tests.

The previous server fixture was just a plain socket unable to perform SSL/TLS.
This meant in certain tests we were skipping the SSL/TLS handshake because it
would fail.

The new proxy_server fixture more closely behaves to that of the real Proxy server.
It allows SSL/TLS by loading in the server CA used for testing, the client can then
use the new context fixture to properly use SSL to connect to the server.

This will provide a foundation for testing the metadata exchange which will be
introduced in the near future.

@jackwotherspoon jackwotherspoon self-assigned this Apr 2, 2025
@jackwotherspoon jackwotherspoon requested a review from a team as a code owner April 2, 2025 14:36
@jackwotherspoon jackwotherspoon changed the title test: update mock server used for tests to use SSL/TLS test: update server used for tests to use SSL/TLS Apr 2, 2025
@jackwotherspoon jackwotherspoon merged commit 5e73fc5 into main Apr 2, 2025
17 checks passed
@jackwotherspoon jackwotherspoon deleted the improve-server-fixture branch April 2, 2025 16:56
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.

3 participants