Add integration tests and remove redundant unit tests for HttpClient - #40
Merged
Conversation
- Add GitHub Actions workflow for integration tests - Configure Maven Failsafe Plugin for integration tests - Add integration test profile in `pom.xml` - Implement `HttpClientIT` with various test cases - Use `httpbin` service for testing HTTP client behavior - Update parent POM version to 4 for compatibility - Remove `HttpClientTest` class from the test suite - Remove redundant tests for HTTP methods and status codes - Remove tests for authentication, headers, and encoding handling - Simplify test structure by consolidating integration tests
- Removed Docker health check options for httpbin service - Added a script to wait for httpbin readiness using curl - Retries readiness check up to 10 times with a 3-second interval - Outputs readiness status or failure message to stderr - Ensures httpbin is ready before proceeding with tests
- Renamed system property `HTTPBIN_BASE_URL` to `httpbin.url` - Updated example usage in the class documentation - Adjusted error message to reflect the new property name - Ensured backward-incompatible change is documented in code
compatibility - Updated `pom.xml` to include `argLine` configuration - Exported `java.base/sun.net.www.protocol.http` module - Exported `java.base/sun.security.ssl` module - Ensured compatibility with internal Java modules - Aimed to resolve runtime issues with specific plugins
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
pom.xmlHttpClientITwith various test caseshttpbinservice for testing HTTP client behaviorHttpClientTestclass from the test suite