Skip to content

Add integration tests and remove redundant unit tests for HttpClient - #40

Merged
NassimBtk merged 4 commits into
mainfrom
integration-tests
Oct 14, 2025
Merged

Add integration tests and remove redundant unit tests for HttpClient#40
NassimBtk merged 4 commits into
mainfrom
integration-tests

Conversation

@NassimBtk

Copy link
Copy Markdown
Collaborator
  • 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

- 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
@NassimBtk
NassimBtk requested a review from bertysentry October 14, 2025 21:37
@NassimBtk
NassimBtk merged commit 0d7a961 into main Oct 14, 2025
5 checks passed
@NassimBtk
NassimBtk deleted the integration-tests branch October 14, 2025 21:37
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.

1 participant