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

Refactor HttpClient and add unit tests #102

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

AlexRuiz7
Copy link
Member

@AlexRuiz7 AlexRuiz7 commented Oct 14, 2024

Description

This PR refactors the HttpClient for better readability and modularity, simplifying the code.
It also adds some unit tests.

Notes

Issues Resolved

Closes #89

@AlexRuiz7 AlexRuiz7 self-assigned this Oct 14, 2024
@AlexRuiz7 AlexRuiz7 requested a review from a team as a code owner October 14, 2024 11:48
@AlexRuiz7 AlexRuiz7 merged commit cfa06f7 into 89-implement-http-client-logic Oct 14, 2024
1 check passed
@AlexRuiz7 AlexRuiz7 deleted the 89-refactor-http-client branch October 14, 2024 13:31
AlexRuiz7 added a commit that referenced this pull request Oct 14, 2024
* Add plugin-security.policy

* Add dependencies and async http requests service class.

* Make the plugin perform periodical http queries using placeholder scheduler and config classes

* Adapt the plugin for POST requests to a local server

* Small fixes

* Switch to using HttpClient

* Fix slf4j nop warnings

* Fix test failing on forbidden api usage

* Add json body

* Use doPrivileged

* Fix socket permission denied error

* Make close() work again

* Add lifecycle component back to jobscheduler placeholder class

* Make AsyncRequestRepository a singleton

* Remove unneeded dependencies

* Add license and notice files

* Fix forbiddenapis error

* Skip checks dependency license checks and dependencies forbidden apis check

* Refactor HttpClient and add unit tests (#102)

* Refactor HttpClient and add unit tests

* Add more JavaDocs

* Fix Javadocs

---------

Signed-off-by: Álex Ruiz <[email protected]>
Co-authored-by: Álex Ruiz <[email protected]>
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