jedarden
|
293463aaac
|
test(bf-4gif): add comprehensive MockUpstream test suite
Add complete test coverage for MockUpstream server scenarios and methods:
- Verify all 11 documented scenarios (429, empty body, errors, etc.)
- Test all 6 MockUpstream methods (GetRequestCount, SetFailUntilCount, etc.)
- Add 8 proxy integration tests verifying end-to-end behavior
All tests pass, confirming MockUpstream correctly simulates:
* Rate limiting with Retry-After headers
* Malformed responses (empty/invalid JSON, empty streaming)
* Non-retryable errors (422, 500, 404)
* Retry behavior through the proxy handler
* Delay simulation and custom handler overrides
Co-Authored-By: Claude <noreply@anthropic.com>
|
2026-07-02 18:14:31 -04:00 |
|