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
Thiago Youssef
7a7cd6be08
Fix test naming error
2022-10-28 14:00:18 +03:00
Alex Sherman
f17ef17d16
Move throttling feature from gem back to the app
2022-10-28 14:00:18 +03:00
Thiago Youssef
8be020582e
Add status notes to repp domain serializer
2022-04-12 13:19:32 +03:00
olegphenomenon
4d64ee21a1
refactoring
2021-09-22 11:21:49 +03:00
olegphenomenon
1bb5dddd58
added abbility for added extenstions prohibited status
2021-09-21 17:15:01 +03:00
Oleg Hasjanov
4c5e4d7898
made support test schema domain version 1.2
2021-06-28 13:44:13 +03:00
Oleg Hasjanov
1665e6e71e
make supporting version for schema
2021-06-25 14:27:40 +03:00
Alex Sherman
00a0be2341
Replace some hardcoded schema paths for method calls
2021-05-21 16:47:20 +05:00
Alex Sherman
a0d0ce3e00
Rename util class, add first usage
2021-05-21 14:38:31 +05:00
Alex Sherman
45dfa57529
Move class to lib, add sugar, add tests
2021-05-20 17:13:26 +05:00
Timo Võhmar
bf1f11d72f
Merge pull request #1860 from internetee/1857-covered-registry-by-tests
...
1857 covered registry by tests
2021-03-12 11:36:09 +02:00
Oleg Hasjanov
0c22107b12
Tests: fixed exptected values
2021-03-09 13:03:11 +02:00
Oleg Hasjanov
14b8dd6ade
added test for jobs, validators and helper
2021-03-03 18:00:14 +02:00
Oleg Hasjanov
d53d4f2412
added tests for validator, job and update contact
2021-03-02 18:58:05 +02:00
Karl Erik Õunapuu
84755226a3
Reflect new keys in registrant API tests
2021-02-05 12:11:36 +02:00
Karl Erik Õunapuu
92b294e81b
Reflect new behaviour of registrant API in tests
2020-12-04 15:24:14 +02:00
Karl Erik Õunapuu
11ee1f9f1e
Remove ID card logic from codebase
2020-10-01 17:18:23 +03:00
Maciej Szlosarczyk
bc3ea52667
Fix typo
2020-06-26 22:55:34 +03:00
Maciej Szlosarczyk
d005a61888
Move to new serializer
2020-06-26 11:23:30 +03:00
Maciej Szlosarczyk
cba445ee5b
Create contact XML deserializer
2020-06-25 12:40:57 +03:00
Maciej Szlosarczyk
28695f4c22
add email field to contact serializer
2020-06-12 14:32:53 +03:00
Maciej Szlosarczyk
bacdebd17c
Pull out ident parsing from Epp::Contact class
2020-06-05 10:31:51 +03:00
Maciej Szlosarczyk
043037225b
Extract legal doc parsing away from Epp::Domain class
2020-06-05 09:56:30 +03:00
Artur Beljajev
f0a7edd6d8
Ignore legacy database columns
...
Closes #1377
2019-12-15 18:27:01 +02:00
Artur Beljajev
771f9b20a9
Remove unnecessary teardown step
2019-09-03 18:25:18 +03:00
Artur Beljajev
cea834d5b7
Change domains.delete_at
database column type to date, rename to
...
`delete_date`
Closes #1125
2019-05-02 16:32:44 +03:00
Artur Beljajev
1ad62bf4bd
Remove domains.reserved
database column as unused
2019-04-03 14:49:13 +03:00
Artur Beljajev
5107d2d3a9
Refactor force delete
procedure
...
- Change `domains.force_delete_at` database column type to date,
rename to `force_delete_date`
- Save `force_delete_date` in application timezone
- Improve tests
Fixes #812 , #253
2019-03-28 18:19:51 +02:00
Artur Beljajev
a08f063640
Refactor ID card sign-in
...
- Extract to Devise custom strategy
- Use `SSL_CLIENT_S_DN_CN` env variable instead of `SSL_CLIENT_S_DN` to
get ID card data
- Remove `database_authenticatable` strategy from `RegistrantUser`
Closes #1047
2019-03-19 19:37:36 +02:00
Artur Beljajev
ad9a58a17d
Fix fixture
...
Otherwise HTML validation fails
2019-03-08 13:31:44 +02:00
Artur Beljajev
2c5093b29b
Fix typo
2019-02-26 13:57:40 +02:00
Maciej Szlosarczyk
94efbbbab0
Use the same serializer for all contact related actions
...
Also, rerun the response with an RFC4627 formatter
2018-11-01 23:06:27 +02:00
Maciej Szlosarczyk
f551140a0d
Fix #1000
...
* Return contacts inside domain object
* Return registrant uuid and name inside domain object
2018-10-04 09:54:52 +03:00
Maciej Szlosarczyk
2a4995226f
Expand on the response about registrar and nameservers
...
* Return website for registrar
* Return IPv4 and IPv6 addresses for nameservers
2018-10-03 16:34:26 +03:00
Maciej Szlosarczyk
5e5162e44e
Update registry lock controller to also return special serialization
2018-10-02 11:57:52 +03:00
Maciej Szlosarczyk
bbd5421d5f
Add serializer for domain objects
2018-10-02 11:12:36 +03:00
Maciej Szlosarczyk
4a6742692a
Fix issues raising from upgrade to Ruby 2.4
2018-08-15 12:47:27 +03:00
Maciej Szlosarczyk
8f234a5852
Create base controller class
2018-07-23 16:23:56 +03:00
Maciej Szlosarczyk
35c3f0a5bf
Change Base64 encoding to be url_safe, add crude implementation of a Controller
2018-07-20 17:29:13 +03:00
Maciej Szlosarczyk
dc8230dcc2
Create AuthTokenCreator and AuthTokenDecryptor classes
2018-07-20 15:21:10 +03:00