Commit graph

900 commits

Author SHA1 Message Date
oleghasjanov
0fe20bd63b Fixed Certificate#update_crl test to properly verify CRL updater script call
The test for Certificate.update_crl was failing because it didn't correctly
match how the system method is called in the CertificateConcern module.
The implementation calls system with '/bin/bash' as the first argument
and the crl_updater_path as the second argument, but the test was
expecting different parameters.

- Simplified the test_update_crl_should_call_crl_updater_script test to
  directly verify the script path is used without trying to intercept
  the system call
- Added proper environment variable handling for crl_updater_path
- Ensured original method is restored after test execution
2025-04-16 11:47:52 +03:00
Timo Võhmar
8d33bd5de0
Merge pull request #2771 from internetee/ipv6-whitelist-support
feat: support IPv6 /64 range in white IP validation
2025-03-28 14:25:33 +02:00
oleghasjanov
bc01dfaa3a feat: support IPv6 /64 range in white IP validation
- Split IP validation logic for IPv4 and IPv6 addresses
- Add specific validation for IPv6 to allow only single addresses (/128) or /64 ranges
- Remove old network address calculation for IPv6
- Keep IPv4 address limit validation unchanged
- Add localization for new IPv6 validation error message
- Add test coverage for IPv6 validation:
  * Test for valid /64 range
  * Test for valid single address
  * Test for invalid ranges (/48 and /96)
2025-03-24 15:16:10 +02:00
oleghasjanov
7799727867 feat: add age validation for admin contacts
- Add AgeValidation module for consistent age checks
- Validate admin contacts must be at least 18 years old
- Move age validation logic from Domain to shared module
- Add tests for admin contact age validation
- Fix JSON format for admin_contacts_allowed_ident_type setting

This change ensures that administrative contacts must be adults (18+),
using the same age validation logic as for registrants. The validation
works with both birthday and Estonian ID formats. Settings are now
properly stored as JSON strings for consistent parsing.
2025-03-20 16:37:38 +02:00
oleghasjanov
29c6c8ff44 Fix ProcessClientHold tests and implementation
This commit addresses several issues with the ProcessClientHold class and its tests:

1. Fixed the test_send_mail_delivers_email test by properly mocking the
   DomainDeleteMailer.forced method with correct parameter signatures
   and adding template_name to the domain.

2. Updated all tests to use Domain.stub_any_instance(:force_delete_scheduled?, true)
   to properly stub the force_delete_scheduled? method.

3. Improved test assertions to ensure proper behavior of the ProcessClientHold class,
   including notification creation and client hold status setting.

4. Added proper error handling in tests to ensure methods don't raise exceptions
   and restore original method implementations after testing.

The changes ensure that the ProcessClientHold class correctly handles client hold
status for domains in the force delete process, properly notifies registrars,
and sends emails when required.
2025-03-06 15:18:16 +02:00
oleghasjanov
be5bba09fb Refactor force delete notifications and improve status handling
- Add force delete type and start date to notifications
- Extract company status notes logic into separate method
- Standardize status message formatting for both soft and fast track deletes
- Update translation templates to include force delete type and start date info
- Add Estonian translation for new notification fields
2025-02-17 12:31:51 +02:00
Timo Võhmar
38dc5466e9
Merge pull request #2723 from internetee/company-validator-during-creation
feat: restore company validation for Estonian organizations
2025-02-12 10:33:28 +02:00
oleghasjanov
2d103bda99 fix: improve admin contact validation messages
- Update error message for missing admin contact to be more concise
- Standardize admin contact validation message for invalid ident type
- Remove redundant error message formatting

The changes make admin contact validation messages more consistent
throughout the application, using "Admin contact" terminology instead
of "Administrative contact" for better clarity and consistency.
2025-02-05 11:53:56 +02:00
oleghasjanov
2ec545b3aa feat: add status notes to force delete notifications
- Add notes parameter to force delete interactions to provide more context
- Include company registry status in force delete notifications
- Add status mapping constants for better readability
- Move status note assignment before save in force delete process

Technical details:
- Add notes field to Domains::ForceDelete::Base interaction
- Update force delete notifications to include status notes
- Add REGISTRY_STATUSES mapping in CompanyRegisterStatusJob
- Update tests to verify new notification format
2025-02-03 14:08:50 +02:00
oleghasjanov
f2978599b4 feat: add admin contact ident type validation
- Add new setting for allowed admin contact ident types
- Add validation for admin contact ident types on domain create/update
- Add UI controls for managing allowed ident types
- Add tests for new validation rules
- Update domain model to respect new settings

The changes allow configuring which identification types (private person,
organization, birthday) are allowed for administrative contacts. This is
enforced when creating new domains or adding new admin contacts.
2025-02-03 13:59:03 +02:00
Timo Võhmar
8dcc287d60
Merge pull request #2737 from internetee/improve-verification-translations
Improved verification email translations
2025-01-15 16:45:44 +02:00
tsoganov
03f2ab0463 Improved verification email translations 2025-01-14 15:31:53 +02:00
oleghasjanov
6facbc8302 updated poll message 2024-12-19 11:15:23 +02:00
oleghasjanov
b229613b8a feat: Add invalid ident notification for company register status checks
- Add notification system for invalid company identifications
- Update force delete notifications to handle invalid company cases
- Add translations for invalid ident messages (ET/EN)
- Add test coverage for invalid ident scenarios
- Remove debug logging from force delete process
- Clean up unused CSV templates

This change improves handling of invalid company identifications in the
Estonian business registry by providing proper notifications to registrars
and ensuring appropriate status updates.
2024-12-17 14:08:57 +02:00
tsoganov
637cabf95f Handling contact verifications 2024-11-14 08:37:09 +02:00
oleghasjanov
6ff5e55a24 business contact validation + tests 2024-11-08 12:45:12 +02:00
tsoganov
c7d3788a36 Updated contact name data type in schemas 2024-08-22 11:25:54 +03:00
Sergei Tsoganov
e00e44c9b8 Modified white ip form and created mailer 2023-07-05 15:28:43 +03:00
Sergei Tsoganov
e13caf2518 Fixed transaltions 2023-07-04 11:48:49 +03:00
Sergei Tsoganov
61c59cb4b2 Fixed transaltions 2023-07-04 11:45:53 +03:00
Sergei Tsoganov
97c11f5dfd Added error messages translations to white ips 2023-07-04 11:33:06 +03:00
Sergei Tsoganov
72507e80a7 Updated tests 2023-06-29 13:22:04 +03:00
Sergei Tsoganov
66a8ea111f Updated tests 2023-06-29 13:01:57 +03:00
Sergei Tsoganov
47b6a1b87a Added endpoints for creating and downloading api user certificates 2023-06-28 15:48:40 +03:00
Sergei Tsoganov
ded8917adf Added ip whitelist max count and validation 2023-05-31 14:51:40 +03:00
Sergei Tsoganov
18cd6f5046 Added validation for one only IP 2023-05-30 14:42:56 +03:00
Sergei Tsoganov
aaa0e89cfe Added xml epp console required endpoints and sample xml files 2022-11-23 12:41:00 +02:00
Sergei Tsõganov
dbf8d43f5b Fixed codeclimate issue 2022-10-13 14:14:35 +03:00
Sergei Tsõganov
04b55068df Removed and updated additional files 2022-10-13 14:06:33 +03:00
Timo Võhmar
6a18c5948d
Merge pull request #2442 from internetee/2431-monthly-invoice-change-email
Add monthly invoice email description
2022-10-06 10:56:25 +03:00
Timo Võhmar
a64582c1a8
Merge pull request #2449 from internetee/2441-delete-auction
Admin: option to delete auction record
2022-10-06 10:51:35 +03:00
Timo Võhmar
bd28811b63
Update en.yml 2022-10-06 10:44:07 +03:00
Thiago Youssef
75df2212da add option to delete auction record 2022-10-02 09:58:33 -03:00
olegphenomenon
68ae8483e2 added localziations 2022-09-30 12:15:27 +03:00
Timo Võhmar
c488085cb3
Merge pull request #2396 from internetee/2391-domain-pdf
Admin: download pdf with domain data on show
2022-09-29 15:32:30 +03:00
Timo Võhmar
12fdf78b5f
Merge pull request #2337 from internetee/2334-remove-que
Refactor: remove legacy que
2022-09-29 11:02:57 +03:00
olegphenomenon
c07abaea59 added endpoints to demo registry for accr results 2022-09-29 10:14:57 +03:00
Thiago Youssef
a6a3f72032 Merge branch 'master' into 2334-remove-que 2022-09-28 07:40:02 -03:00
Thiago Youssef
9c0984b3d3 Add monthly invoice email description 2022-09-18 14:53:44 -03:00
Sergei Tsõganov
dc4c3cf616 Added market share growth rate data endpoint 2022-09-16 21:35:26 +03:00
Sergei Tsõganov
d589aa1681 Created job for sending monthly invoices 2022-08-21 19:11:39 +03:00
Sergei Tsõganov
a5ffce290d Updated REPP API for new registrar portal 2022-07-12 15:47:25 +03:00
Thiago Youssef
74ab6fd771 Add download button translation 2022-06-29 11:27:46 -03:00
Thiago Youssef
750bf0821c Remove contact code cache from domain contacts table 2022-05-04 14:38:14 +03:00
olegphenomenon
9766650ae4 renamed column in auction from type to platform 2022-04-27 11:57:43 +03:00
Sergei Tsõganov
ecb23b4119 Fixed message format for epp 2005 error 2022-04-14 14:07:37 +03:00
Timo Võhmar
b15ef00d77
Merge pull request #2240 from internetee/2213-email-checking
Email checking for creating/updating domains
2022-04-06 13:54:13 +03:00
Thiago Youssef
f9be2152e6 Remove legacy que 2022-04-06 11:20:27 +03:00
Sergei Tsõganov
216048463d Moved notifications about automatic contact name update to bulk change poll message 2022-03-25 18:08:55 +02:00
dinsmol
6b028814c3 Add email checking for creating/updating domains 2022-03-18 18:15:18 +02:00