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

ostree: extract httpClientForRef from resolveRef #1052

Merged
merged 1 commit into from
Nov 21, 2024

Conversation

mvo5
Copy link
Contributor

@mvo5 mvo5 commented Nov 19, 2024

This commit extracts a httpClientForRef helper from the resolveRef()
function. This helps with readability and testability. It also adds
a test for the proxy setting.

Not ideal as the test knows a bit too much about the implementation details but OTOH realtively straightfoward to add.

[build on top of https://github.com//pull/1050]

@lzap
Copy link
Contributor

lzap commented Nov 19, 2024

I think this is great, can you add a test for client cert/key as well as CA certs?

@mvo5 mvo5 force-pushed the ostree-proxyparser-test branch 2 times, most recently from 34559bc to 1a42113 Compare November 19, 2024 20:11
@mvo5 mvo5 marked this pull request as ready for review November 19, 2024 20:11
@mvo5
Copy link
Contributor Author

mvo5 commented Nov 19, 2024

I think this is great, can you add a test for client cert/key as well as CA certs?

Added

This commit extracts a `httpClientForRef` helper from the `resolveRef()`
function. This helps with readability and testability. It also adds
a test for the proxy setting, CA and MTLS settings.
@mvo5 mvo5 force-pushed the ostree-proxyparser-test branch from 1a42113 to c4d00f2 Compare November 20, 2024 08:16
@mvo5 mvo5 requested a review from lzap November 20, 2024 08:16
Copy link
Contributor

@bcl bcl left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@supakeen supakeen added this pull request to the merge queue Nov 21, 2024
Copy link
Contributor

@lzap lzap left a comment

Choose a reason for hiding this comment

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

Thank you.

Merged via the queue into osbuild:main with commit 2490964 Nov 21, 2024
19 checks passed
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.

4 participants