internetee-registry/test/jobs
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
..
active_job_queuing_test.rb Fix broken job queing test 2021-05-06 12:14:35 +05:00
company_register_status_job_test.rb updated test 2025-02-17 13:16:14 +02:00
csync_job_test.rb Refactored monthly invoice generation job 2022-10-12 09:59:21 +03:00
directo_invoice_forward_job_test.rb Refactored monthly invoice generation job 2022-10-12 09:59:21 +03:00
dispute_status_update_job_test.rb added test 2022-12-07 14:33:43 +02:00
domain_delete_confirm_job_test.rb Move job to interactor 2020-12-08 13:16:30 +05:00
domain_delete_job_test.rb Bring back Que gem for painless migration 2021-04-12 17:22:36 +05:00
domain_expire_email_job_test.rb Bring back Que gem for painless migration 2021-04-12 17:22:36 +05:00
domain_update_confirm_job_test.rb updated tests 2022-02-09 15:15:08 +02:00
force_delete_daily_admin_notifier_job_test.rb Remove debug output from force delete process 2024-12-19 14:27:47 +02:00
nameserver_record_validation_job_test.rb dnssec ans ns validation message 2022-04-28 11:32:40 +03:00
notify_accreditation_admins_and_registrars_job_test.rb added tests 2021-11-11 13:10:27 +02:00
org_registrant_phone_checker_job_test.rb fix: handle HTTPClient::KeepAliveDisconnected in OrgRegistrantPhoneCheckerJob 2025-03-06 11:38:09 +02:00
outzone_invalid_email_domains_job_test.rb fixed tests 2022-09-09 13:54:16 +03:00
regenerate_subzone_whoises_job_test.rb Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
registrant_change_confirm_email_job_test.rb Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
registrant_change_expired_email_job_test.rb Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
registrant_change_notice_email_job_test.rb Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
replace_upd_to_obj_upd_prohibited_job_test.rb updated tests 2021-09-24 14:18:39 +03:00
scan_csv_registry_businnes_contacts_job_test.rb added test 2021-06-17 16:02:40 +03:00
send_e_invoice_legacy_job_test.rb updated tests 2022-09-02 14:58:50 +03:00
send_monthly_invoices_job_test.rb Handling of cancelled monthly invoices 2022-10-13 09:02:48 +03:00
update_whois_record_job_test.rb remove active domains from whois job 2021-10-20 11:37:12 +03:00
validate_dnssec_job_test.rb addede test for dnssec validator 2022-02-09 15:15:08 +02:00
verify_emails_job_test.rb comment out tests 2021-11-23 18:05:56 +02:00