mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 05:56:20 +02:00
updated poll message
This commit is contained in:
parent
b229613b8a
commit
6facbc8302
4 changed files with 19 additions and 5 deletions
|
@ -7,7 +7,11 @@ module Domains
|
|||
|
||||
def notify_without_email
|
||||
template = if reason == 'invalid_company'
|
||||
I18n.t('invalid_ident', ident: domain.registrant.ident)
|
||||
I18n.t('invalid_ident',
|
||||
ident: domain.registrant.ident,
|
||||
domain_name: domain.name,
|
||||
outzone_date: domain.outzone_date,
|
||||
purge_date: domain.purge_date)
|
||||
else
|
||||
I18n.t('force_delete_set_on_domain',
|
||||
domain_name: domain.name,
|
||||
|
@ -22,7 +26,11 @@ module Domains
|
|||
|
||||
def notify_with_email
|
||||
template = if reason == 'invalid_company'
|
||||
I18n.t('invalid_ident', ident: domain.registrant.ident)
|
||||
I18n.t('invalid_ident',
|
||||
ident: domain.registrant.ident,
|
||||
domain_name: domain.name,
|
||||
outzone_date: domain.outzone_date,
|
||||
purge_date: domain.purge_date)
|
||||
else
|
||||
I18n.t('force_delete_auto_email',
|
||||
domain_name: domain.name,
|
||||
|
|
|
@ -675,7 +675,7 @@ en:
|
|||
actions: Actions
|
||||
contact_has_been_archived: 'Contact with code %{contact_code} has been archieved because it has been orphaned for longer than %{orphan_months} months.'
|
||||
dns_policy_violation: "Data management policy violation: DNSKEY does not match or not found in the authoritative nameservers"
|
||||
invalid_ident: 'Invalid ident %{ident}'
|
||||
invalid_ident: 'Force delete set on domain %{domain_name}. Outzone date: %{outzone_date}. Purge date: %{purge_date}. Invalid ident %{ident}'
|
||||
|
||||
number:
|
||||
currency:
|
||||
|
|
|
@ -41,4 +41,4 @@ et:
|
|||
ipv6:
|
||||
taken: 'on juba lisatud'
|
||||
|
||||
invalid_ident: 'Vigane ident %{ident}'
|
||||
invalid_ident: 'Jõustatud kustutamine määratud domainile %{domain_name}. Väljaandmise kuupäev: %{outzone_date}. Kustutamise kuupäev: %{purge_date}. Vigane ident %{ident}'
|
||||
|
|
|
@ -179,7 +179,13 @@ class CompanyRegisterStatusJobTest < ActiveSupport::TestCase
|
|||
@registrant_acme.reload
|
||||
|
||||
assert_equal Contact::DELETED, @registrant_acme.company_register_status
|
||||
assert_equal @registrant_acme.registrant_domains.first.registrar.notifications.last.text, I18n.t('invalid_ident', ident: @registrant_acme.ident)
|
||||
|
||||
template = I18n.t('invalid_ident',
|
||||
ident: @registrant_acme.ident,
|
||||
domain_name: @registrant_acme.registrant_domains.first.name,
|
||||
outzone_date: @registrant_acme.registrant_domains.first.outzone_date,
|
||||
purge_date: @registrant_acme.registrant_domains.first.purge_date)
|
||||
assert_equal @registrant_acme.registrant_domains.first.registrar.notifications.last.text, template
|
||||
|
||||
CompanyRegister::Client.define_singleton_method(:new, original_new_method)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue