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

Fixes http.Verifier so it uses its http client #4270

Merged

Conversation

AndersonQ
Copy link
Member

What does this PR do?

Changes the http.Verifier to use its http.Client and extend the tests to also test it uses the proxy.

Why is it important?

The http.Verifier was using the default http client, which does not have the user defined settings.

Checklist

  • My code follows the style guidelines of this project
  • [ ] I have commented my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation
  • [ ] I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in ./changelog/fragments using the changelog tool
  • [ ] I have added an integration test or an E2E test

How to test this PR locally

follow the Steps to Reproduce from #4237

Related issues

Questions to ask yourself

  • How are we going to support this in production?
  • How are we going to measure its adoption?
  • How are we going to debug this?
  • What are the metrics I should take care of?
  • ...

@AndersonQ AndersonQ requested a review from a team as a code owner February 15, 2024 13:15
@AndersonQ AndersonQ self-assigned this Feb 15, 2024
Copy link
Contributor

mergify bot commented Feb 15, 2024

This pull request does not have a backport label. Could you fix it @AndersonQ? 🙏
To fixup this pull request, you need to add the backport labels for the needed
branches, such as:

  • backport-v./d./d./d is the label to automatically backport to the 8./d branch. /d is the digit

NOTE: backport-skip has been added to this pull request.

@AndersonQ AndersonQ added Team:Elastic-Agent Label for the Agent team backport-v8.12.0 Automated backport with mergify backport-v8.13.0 Automated backport with mergify labels Feb 15, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/elastic-agent (Team:Elastic-Agent)

@AndersonQ AndersonQ requested a review from rdner February 15, 2024 13:18
@mergify mergify bot removed the backport-skip label Feb 15, 2024
also add test with proxy for the downloader and verifier.
@AndersonQ AndersonQ force-pushed the 4237-fix-download-verifier-http-client branch from b4bc672 to ef96788 Compare February 15, 2024 13:21
Copy link
Contributor

@blakerouse blakerouse left a comment

Choose a reason for hiding this comment

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

Change looks good, crazy it had a TODO over the line and already had the client in the verifier.

Copy link
Member

@pchila pchila left a comment

Choose a reason for hiding this comment

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

Aside from the small issue in changelog fragment, everything else looks good

…c-Agent-did-not-utilize-the-download-settings-when-downloading-the-artifact-signature-file..yaml

Co-authored-by: Blake Rouse <[email protected]>
Copy link

@AndersonQ AndersonQ enabled auto-merge (squash) February 15, 2024 16:17
@AndersonQ AndersonQ merged commit 1d63dde into elastic:main Feb 15, 2024
9 checks passed
mergify bot pushed a commit that referenced this pull request Feb 15, 2024
also add test with proxy for the Verifier.

(cherry picked from commit 1d63dde)
mergify bot pushed a commit that referenced this pull request Feb 15, 2024
also add test with proxy for the Verifier.

(cherry picked from commit 1d63dde)
michalpristas pushed a commit that referenced this pull request Feb 16, 2024
also add test with proxy for the Verifier.

(cherry picked from commit 1d63dde)

Co-authored-by: Anderson Queiroz <[email protected]>
Co-authored-by: Pierre HILBERT <[email protected]>
pierrehilbert pushed a commit that referenced this pull request Feb 19, 2024
also add test with proxy for the Verifier.

(cherry picked from commit 1d63dde)

Co-authored-by: Anderson Queiroz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport-v8.12.0 Automated backport with mergify backport-v8.13.0 Automated backport with mergify Team:Elastic-Agent Label for the Agent team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Verifier does not honor proxy settings
5 participants