internetee-registry/config
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
..
environments Move throttling feature from gem back to the app 2022-10-28 14:00:18 +03:00
initializers updated logs sidekiq handling 2025-02-03 14:08:50 +02:00
locales Fix ProcessClientHold tests and implementation 2025-03-06 15:18:16 +02:00
application.rb Corrected test errors 2023-03-16 12:32:02 +02:00
application.yml.sample Added birthday ident verification 2025-01-27 16:26:20 +02:00
boot.rb Use require_relative where possible 2020-05-29 16:28:57 +03:00
cable.yml added demo env to registry 2021-12-13 15:08:37 +02:00
credentials.yml.enc added encoder for billing request 2022-05-11 11:17:47 +03:00
database.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_development.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_registrant.yml.sample added demo env to registry 2021-12-13 15:08:37 +02:00
database_travis.yml added demo env to registry 2021-12-13 15:08:37 +02:00
deploy.rb.sample Remove legacy que 2022-04-06 11:20:27 +03:00
environment.rb Upgrade to Rails 5.0 2019-11-15 15:26:33 +02:00
newrelic.yml Merge pull request #2238 from internetee/add-new-demo-env 2021-12-29 17:06:43 +02:00
puma.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
routes.rb Modified identification request webhook 2024-11-14 08:37:09 +02:00
schedule.rb updated tests 2022-02-09 15:15:08 +02:00
secrets.yml added demo env to registry 2021-12-13 15:08:37 +02:00
sidekiq.yml Increase sidekiq concurrency 2021-04-12 17:22:36 +05:00
spring.rb Pump rails version, fix tests 2020-02-05 12:43:25 +05:00
storage.yml Binaries / New configs from Rails 5.2 app:update 2020-04-15 09:19:43 +03:00