internetee-registry/test/lib
oleghasjanov a11c0fca2d fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob
This commit implements a reliable connection error handling solution for the
Company Register API integration. The job previously failed when connection
errors occurred without proper recovery mechanisms.
The implementation:
Adds a lightweight Retryable module with configurable retry logic
Implements smart caching of API responses (1 day expiration)
Handles common network errors like KeepAliveDisconnected and timeouts
Provides a fallback mechanism when all retry attempts fail
Ensures test reliability with cache-skipping in test environment
Testing:
Added specific tests for both recovery and fallback scenarios
Verified cache behavior in production and test environments
Resolves connection errors observed in production logs without adding
unnecessary complexity to the codebase.
2025-03-06 11:38:09 +02:00
..
auth_token Remove unnecessary teardown step 2019-09-03 18:25:18 +03:00
deserializers/xml made support test schema domain version 1.2 2021-06-28 13:44:13 +03:00
serializers Add status notes to repp domain serializer 2022-04-12 13:19:32 +03:00
shunter Fix test naming error 2022-10-28 14:00:18 +03:00
validators added test for jobs, validators and helper 2021-03-03 18:00:14 +02:00
xsd_schema make supporting version for schema 2021-06-25 14:27:40 +03:00
retryable_test.rb fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob 2025-03-06 11:38:09 +02:00