internetee-registry/test
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
..
fixtures feat: add admin contact ident type validation 2025-02-03 13:59:03 +02:00
helpers fixed tests: updated gems; improve company register status job and test stability 2024-11-13 15:04:39 +02:00
integration Merge pull request #2723 from internetee/company-validator-during-creation 2025-02-12 10:33:28 +02:00
interactions remove test 2025-02-03 14:08:50 +02:00
jobs fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob 2025-03-06 11:38:09 +02:00
learning Removed date_from attribute 2023-12-19 09:38:00 +02:00
lib fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob 2025-03-06 11:38:09 +02:00
mailers added more tests 2024-11-08 12:45:12 +02:00
models Merge pull request #2751 from internetee/2742-clienthold-status-must-not-me-reset-unless-the-forcedelete-status-is-reset 2025-02-19 15:38:17 +02:00
services Corrected tests 2024-11-14 08:37:09 +02:00
support/assertions Pump minitest version 2020-02-05 12:43:25 +05:00
system/admin_area Corrected tests 2023-06-29 14:00:44 +03:00
tasks business contact validation + tests 2024-11-08 12:45:12 +02:00
application_system_test_case.rb comment out not relevant tests 2024-02-02 09:08:04 +02:00
test_helper.rb removed extra line 2024-11-14 10:16:24 +02:00