Skip to content

fix(http_client) :: test which variables select the system trust store - #1435

Open
81reap wants to merge 1 commit into
sqlpage:mainfrom
81reap:mutation/11-tls-trust-store
Open

fix(http_client) :: test which variables select the system trust store#1435
81reap wants to merge 1 commit into
sqlpage:mainfrom
81reap:mutation/11-tls-trust-store

Conversation

@81reap

@81reap 81reap commented Sep 7, 2026

Copy link
Copy Markdown
Collaborator

SSL_CERT_FILE and SSL_CERT_DIR decide whether sqlpage.fetch and send_mail trust the system root certificates or the bundled ones. This addes tests for these cases.

discovered buy #1396

`SSL_CERT_FILE` and `SSL_CERT_DIR` decide whether `sqlpage.fetch` and `send_mail` trust the system root certificates or the bundled ones. This addes tests for these cases.
@81reap
81reap marked this pull request as ready for review September 7, 2026 03:47

@lovasoa lovasoa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is the right level to test this. This is verbose and does not actually test the feature. Certificate selection could be broken and this would pass

If you think this part of the code is brittle, I think a higher level test is more appropriate. One that tests end 2 end which certificates are selected when using fetch or send mail. This is the kind of integration tests we run inside ./examples. You could add an example about ssl certificates and a hurl test for it.

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