Skip to content

feat: Add CORS and custom header passthrough tests#14

Merged
RyanKung merged 3 commits into
masterfrom
feat/more_tests
Dec 1, 2025
Merged

feat: Add CORS and custom header passthrough tests#14
RyanKung merged 3 commits into
masterfrom
feat/more_tests

Conversation

@RyanKung

@RyanKung RyanKung commented Dec 1, 2025

Copy link
Copy Markdown
Contributor
  • Refactor mock backend from http.server to Flask for better header control
  • Add integration tests for CORS header passthrough via OPTIONS/HEAD methods
  • Add tests for custom header passthrough (nginx-configured and backend headers)
  • Verify both nginx add_header and backend headers can coexist
  • Update Dockerfile to install Flask
  • Update nginx config to add X-NGINX-TEST header for testing

Version bump: 1.3.0 -> 1.3.1

- Refactor mock backend from http.server to Flask for better header control
- Add integration tests for CORS header passthrough via OPTIONS/HEAD methods
- Add tests for custom header passthrough (nginx-configured and backend headers)
- Verify both nginx add_header and backend headers can coexist
- Update Dockerfile to install Flask
- Update nginx config to add X-NGINX-TEST header for testing

Version bump: 1.3.0 -> 1.3.1
…hreaded execution

- Add retry logic (5 retries with 500ms delay) to all integration tests that use http_request/http_request_with_method
- Fix race conditions in concurrent test execution by adding retry mechanisms
- Configure CI workflow to use --test-threads=1 for stable test execution
- Tests affected: header_passthrough_tests, http_method_tests, proxy_payment_tests, websocket_subrequest_tests, basic_tests
- All 29 integration tests now pass consistently in both single-threaded and multi-threaded modes
…ease workflow

- Update debian/changelog to version 1.3.1 with changelog entries
- Update rpm/nginx-x402.spec Version to 1.3.1 with changelog entries
- Add automatic debian/changelog version update step to release workflow
- Ensure package versions stay in sync with Cargo.toml during releases
@RyanKung
RyanKung merged commit 8cf3f96 into master Dec 1, 2025
6 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.

1 participant