internetee-registry/test/interactions
oleghasjanov 95a6403595 Fix ProcessClientHold tests and implementation
This commit addresses several issues with the ProcessClientHold class and its tests:

1. Changed notification text in notify_client_hold method from 'force_delete_set_on_domain'
   to 'hold_client_on_domain' to better reflect the actual action being performed.
   Added corresponding translation key in locales/en.yml.

2. Fixed the test_send_mail_delivers_email test by using stub method instead of
   redefining DomainDeleteMailer.forced, which was causing conflicts with other tests.
   This ensures that tests are isolated and don't affect each other.

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

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

5. Added proper error handling in tests to ensure methods don't raise exceptions.

The changes ensure that the ProcessClientHold class correctly handles client hold
status for domains in the force delete process, properly notifies registrars with
appropriate messages, and sends emails when required.
2025-03-06 15:32:39 +02:00
..
domain_delete_interaction test: added new tests 2021-03-04 13:22:45 +02:00
domains/client_hold Fix ProcessClientHold tests and implementation 2025-03-06 15:32:39 +02:00
expire_period changed list of email received 2021-05-21 12:36:04 +03:00
force_delete_email remove test 2025-02-03 14:08:50 +02:00
redemption_grace_period Add test for redemption grace period 2020-12-08 13:16:07 +05:00
do_request_test.rb Fixes after repp-apidoc update 2022-07-12 15:48:43 +03:00
email_check_test.rb added test 2023-08-22 15:36:11 +03:00
record_date_of_test_test.rb added new tests 2022-09-29 10:14:57 +03:00