Commit graph

878 commits

Author SHA1 Message Date
Martin
bc40cdde62
Merge pull request #2829 from internetee/adding_test_coverage/admin/domains_controller
Added new tests for admin/domains_controller
2025-08-06 13:20:17 +03:00
Martin
a1337dbcd9
Merge pull request #2827 from internetee/adding_test_coverage/admin/certificates_controller
Added new tests for Admin certificates_controller methods coverage
2025-08-06 13:19:19 +03:00
oleghasjanov
7343e71096 made poll messaging separetly 2025-07-31 13:54:58 +03:00
oleghasjanov
682d9f6de1 rename domain controller test 2025-07-31 11:48:51 +03:00
oleghasjanov
a864056fbd feat(admin): notify registrar about domain status changes
- Add inform_registrar_about_status_changes method to detect added and removed statuses after domain update.
- Send notification to registrar with details of which statuses were set and which were removed.
- Integrate notification logic into domain update action.
2025-07-31 11:48:51 +03:00
Timo Võhmar
c60d93408b
Merge pull request #2821 from internetee/update_test_coverage/accreditation_center/base_controller
Added extra test coverage for accreditation_center/base_controller
2025-07-29 16:18:42 +03:00
Timo Võhmar
000b4d73e2
Merge pull request #2819 from internetee/update_test_coverage/api_users_controller
Update test coverage/api users controller
2025-07-29 16:14:24 +03:00
Timo Võhmar
3fab373aac
Merge pull request #2813 from internetee/update_test_coverage/zones_controller
added new tests for zones_controller
2025-07-29 16:13:05 +03:00
mmeest
c095655700 added extra line 2025-07-25 12:52:07 +03:00
mmeest
a6af2f898c tests added 2025-07-25 12:39:31 +03:00
mmeest
33b38e52c6 added email notification test 2025-07-24 12:16:31 +03:00
mmeest
485de905db added new tests 2025-07-24 12:08:57 +03:00
mmeest
3446c6473d added tests 2025-07-24 11:49:46 +03:00
Timo Võhmar
b57598ff9a
Merge pull request #2815 from internetee/update_test_coverage/lhv_connect_transactions_controller
Added extra test coverage for LhvConnectTransactionsController
2025-07-18 11:28:24 +03:00
mmeest
b6a99188c2 added new tests 2025-07-01 16:36:38 +03:00
mmeest
fbfd031daa added new tests 2025-07-01 10:31:21 +03:00
mmeest
6a79721aa8 added extra tests 2025-07-01 10:31:20 +03:00
mmeest
249aad16b7 Added assertions for failded zone update messages 2025-06-26 13:09:16 +03:00
mmeest
ffec4fd403 updated tests 2025-06-26 11:34:50 +03:00
mmeest
6166c084d3 added new tests for LhvConnectTransactionsController 2025-06-19 12:28:28 +03:00
mmeest
db98213818 added new tests 2025-06-18 12:33:18 +03:00
mmeest
3d8530db3e added new tests 2025-06-17 15:51:47 +03:00
oleghasjanov
072f4440e2 fixed tests 2025-04-16 11:47:52 +03:00
oleghasjanov
d85b93b8f2 fixed password field in p12 container 2025-04-16 11:47:52 +03:00
oleghasjanov
c08c3878e0 fix: improve p12 container generation with proper certificate status
Fix p12 containers being incorrectly generated with revoked status
Add proper serial number generation based on current time
Improve CRL handling in certificate_revoked? method
Fix controller parameter naming from cert_params to p12_params
Add comprehensive tests for certificate status and CRL handling
Include diagnostic methods for troubleshooting CRL issues
This commit resolves the issue where certificates were incorrectly
considered revoked during p12 container generation due to missing
or improperly handled CRL files.
2025-04-16 11:47:52 +03:00
oleghasjanov
c77a4d494d feat: add ability to skip business contact validation
- Add environment variable 'allow_validate_business_contacts' to control business contact validation
- Remove redundant company_is_relevant? method
- Add integration test for skipping company validation
2025-04-01 12:26:53 +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
8ccfaef699 fixed integration test 2025-03-24 15:43:06 +02:00
oleghasjanov
58a1dbafb0 rollback 2025-03-21 12:42:18 +02:00
oleghasjanov
4b1d29944f fixed another one failed system test 2025-03-21 12:33:57 +02:00
oleghasjanov
7ef22c6894 fix system test 2025-03-21 12:24:20 +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
tsoganov
10738995b6 Updated integration test 2025-03-18 16:58:48 +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
a56237c84f fix: update admin contact validation error code
- Change error code from 2004 to 2306 for admin contact validation
- Add explicit validation check for required admin contacts
- Update tests to expect new error code

The error code 2306 better reflects the EPP standard for policy-based
validation failures. This change makes the error handling more consistent
with EPP specifications when validating admin contact requirements.
2025-02-05 10:54:21 +02:00
oleghasjanov
89097bfabe feat: restore company validation for Estonian organizations
- Re-enable company validation logic for Estonian organization contacts
- Update company_register gem to use master branch
- Restore and update company validation tests
- Add additional check for Estonian country code in validation

This change ensures that only registered or liquidated Estonian companies
can be used when creating organizational contacts.
2025-02-03 14:08:18 +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
268b942042
Merge pull request #2741 from internetee/disclose-phone-num-for-org-registrants
Update company_register gem and fix logger dependency
2025-01-31 17:52:57 +02:00
Timo Võhmar
3289851340
Merge pull request #2740 from internetee/add-birthdate-verification
Added birthday ident verification
2025-01-31 17:50:55 +02:00
oleghasjanov
cd5de3bd14 commit
feat: make technical contacts optional for all domains

- Remove automatic tech contact assignment from admin contacts
- Set minimum tech contacts to 0 for all registrant types
- Update tests to reflect optional tech contacts
- Keep max tech contacts limit from settings

This change implements the requirement to make technical contacts optional
for all domain types while maintaining the maximum limit from settings.
Previously tech contacts were required for organizations and automatically
copied from admin contacts.
2025-01-31 15:49:35 +02:00
oleghasjanov
863dcce647 Add admin contact validation rules based on registrant type and age
- Add validation requiring admin contacts for legal entity registrants
- Add validation requiring admin contacts for underage private registrants:
  - Under 18 years old for birthday-based identification
  - Under 18 years old for Estonian ID numbers
- Make admin contacts optional for:
  - Adult private registrants (18+ years)
  - Adult Estonian ID holders
  - Non-Estonian private registrants
- Add tests covering all new validation scenarios
- Add helper methods to calculate age and parse Estonian ID birth dates
2025-01-31 12:49:14 +02:00
tsoganov
c87c86ac9b Corrected tests 2025-01-31 12:49:14 +02:00
oleghasjanov
803276d8c8 Add phone number validation for Estonian organization contacts
- Add OrgRegistrantPhoneCheckerJob execution for contact creation and update
- Rename validate_* methods to maybe_validate_* for consistency
- Add tests for phone number validation in REPP API
- Fix method naming and add proper job arguments

This ensures phone numbers are validated against company register data
for Estonian organization contacts after creation or update.
2025-01-30 12:49:20 +02:00
tsoganov
9f81402d64 Corrected integration test 2025-01-28 10:43:59 +02:00
Timo Võhmar
a9b341ebfe
Merge pull request #2730 from internetee/2702-optional-admin-contact-for-private-registrations
Make admin contacts optional for private registrants
2025-01-28 10:15:33 +02:00
tsoganov
8b872b4a14 Corrected test 2025-01-27 16:43:19 +02:00
tsoganov
5cf18bd9e5 Corrected tests 2025-01-14 15:52:33 +02:00
oleghasjanov
3c169bb00b Make admin contacts optional for private registrants
This change makes admin contacts optional for private registrants while keeping them mandatory for organizations. The changes include:

- Updated Domain model validations to make admin and tech contacts optional (min=0) for private registrants
- Added validation rules methods to handle different requirements based on registrant type
- Modified EPP domain creation to support domains without admin contacts for private registrants
- Updated attach_default_contacts to skip adding contacts for private registrants
- Added comprehensive test coverage for:
  - Domain model validations with private/org registrants
  - EPP domain creation without admin contacts for private registrants
  - REPP API contact management for private registrants

This implements the requirement to make admin contacts optional for private registrations of .ee domains while maintaining the existing validation rules for organizations.
2025-01-07 12:24:57 +02:00
oleghasjanov
d0a39bf469 remove company creation validation 2024-11-25 14:48:28 +02:00
tsoganov
0085f99e02 Modified identification request webhook 2024-11-14 08:37:09 +02:00