internetee-registry/test/models
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
..
balance_auto_reload_types Add balance auto reload 2019-06-14 16:30:34 +03:00
billing updated request for get reference user data 2023-10-31 12:42:40 +02:00
concerns Fix namespaces for Zeitwerk class loader 2021-03-05 19:09:24 +05:00
contact added more tests 2024-11-08 12:45:12 +02:00
dns Move jobs from Que to ActiveJob 2021-04-12 17:22:35 +05:00
domain move validator from callback to action interactor and to the api controller 2024-02-02 09:08:04 +02:00
epp added condition for send expired email 2022-12-02 12:41:55 +02:00
invoice Always require invoice VAT rate 2019-05-17 19:04:33 +03:00
nameserver Improve readability 2019-09-09 16:05:21 +03:00
payment_orders Create System / Admin payment log 2020-02-04 21:10:06 +02:00
registrant_user Modifications for updating business and private contacts 2022-03-29 10:39:26 +03:00
registrar Allow punycode domains in bulk ns change domain scope 2020-12-30 11:09:46 +02:00
version Fix namespaces for Zeitwerk class loader 2021-03-05 19:09:24 +05:00
whois added test for whois record model 2021-02-18 15:22:46 +02:00
account_activity_test.rb Refactor and improve invoices 2019-03-14 15:39:24 +02:00
action_test.rb Add Registrant API contact update action 2018-10-09 00:09:22 +03:00
admin_user_test.rb added tests for disputed and admin_user models 2021-02-18 13:46:01 +02:00
api_user_test.rb Fixed test 2023-05-29 14:56:09 +03:00
auction_test.rb Merge pull request #2403 from internetee/exceptions-for-registered-domains-and-no-bids-auctions 2022-10-20 09:18:32 +03:00
bank_statement_test.rb Convert specs to tests 2019-05-16 17:04:14 +03:00
bank_transaction_test.rb updated test 2022-09-21 11:28:34 +03:00
bounced_mail_address_test.rb Remove email verification legacy code 2022-04-13 11:51:08 +03:00
certificate_test.rb Updated tests 2023-06-29 13:01:57 +03:00
contact_test.rb changed count of contact validations 2024-02-08 15:00:41 +02:00
csync_record_test.rb Fix jquery datapicker requirement 2021-04-19 13:34:00 +05:00
deposit_test.rb Get rid of BigDecimal.new deprecation warning 2020-02-07 18:21:48 +05:00
directo_test.rb Merge pull request #1524 from internetee/277-check-monthly-invoice-number-in-range 2020-02-20 20:42:25 +02:00
disputed_domain_test.rb added tests for disputed and admin_user models 2021-02-18 13:46:01 +02:00
dnskey_test.rb enable trimming for dnskey and email values 2022-10-05 08:07:31 -03:00
domain_contact_test.rb added tests 2021-02-19 16:50:42 +02:00
domain_cron_test.rb Move DomainCron#clean_expired_pendings to interactor 2020-12-08 13:16:07 +05:00
domain_test.rb Make admin contacts optional for private registrants 2025-01-07 12:24:57 +02:00
domain_transfer_test.rb Revert "Domain transfer: Conditionally reuse contacts" 2020-08-04 22:12:36 +03:00
epp_session_test.rb Fix tests 2020-11-13 13:40:12 +05:00
feature_test.rb remove eis-billing feature toggle 2022-09-02 13:32:02 +03:00
iban_test.rb Validate iban 2019-06-12 11:49:31 +03:00
inactive_contacts_test.rb fixed tests 2022-11-07 11:55:57 +02:00
invoice_item_test.rb Enhance InvoiceItem 2019-05-20 17:33:24 +03:00
invoice_state_machinte_test.rb change logic, added tests 2023-02-07 16:10:20 +02:00
invoice_test.rb Merge pull request #2531 from internetee/68-creating-syncronization-of-invoice-changes 2023-04-20 16:08:47 +03:00
legal_document_test.rb added test fo legal doc 2021-02-18 17:43:12 +02:00
mass_action_test.rb added test for mass_action model 2021-02-18 15:02:32 +02:00
nameserver_test.rb Merge branch 'tune-test-env' into registry-662 2018-04-06 00:44:24 +03:00
notification_test.rb Disallow marking a notification as read again 2018-08-24 14:34:44 +03:00
payment_orders_test.rb comment out payment check verification 2023-05-05 16:05:53 +03:00
registrant_user_test.rb fixed tests 2022-11-07 11:55:57 +02:00
registrant_verification_test.rb Add support for PG interval field 2021-05-06 12:15:15 +05:00
registrar_test.rb remove eis-billing feature toggle 2022-09-02 13:32:02 +03:00
registry_test.rb Clean up settings after tests 2019-10-09 15:55:27 +03:00
reserved_domain_test.rb Improve readability 2019-01-16 18:05:15 +02:00
setting_entry_test.rb Test boolean setting returns false for nil value 2020-08-18 12:15:35 +03:00
validation_event_test.rb move validator from callback to action interactor and to the api controller 2024-02-02 09:08:04 +02:00
white_ip_test.rb Corrected failed test 2023-05-31 16:08:50 +03:00
whois_record_test.rb Add data migration to i18ze disclaimer 2020-10-07 17:10:22 +05:00