mirror of
https://github.com/internetee/registry.git
synced 2025-07-29 22:16:19 +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
|
def notify_without_email
|
||||||
template = if reason == 'invalid_company'
|
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
|
else
|
||||||
I18n.t('force_delete_set_on_domain',
|
I18n.t('force_delete_set_on_domain',
|
||||||
domain_name: domain.name,
|
domain_name: domain.name,
|
||||||
|
@ -22,7 +26,11 @@ module Domains
|
||||||
|
|
||||||
def notify_with_email
|
def notify_with_email
|
||||||
template = if reason == 'invalid_company'
|
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
|
else
|
||||||
I18n.t('force_delete_auto_email',
|
I18n.t('force_delete_auto_email',
|
||||||
domain_name: domain.name,
|
domain_name: domain.name,
|
||||||
|
|
|
@ -675,7 +675,7 @@ en:
|
||||||
actions: Actions
|
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.'
|
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"
|
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:
|
number:
|
||||||
currency:
|
currency:
|
||||||
|
|
|
@ -41,4 +41,4 @@ et:
|
||||||
ipv6:
|
ipv6:
|
||||||
taken: 'on juba lisatud'
|
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
|
@registrant_acme.reload
|
||||||
|
|
||||||
assert_equal Contact::DELETED, @registrant_acme.company_register_status
|
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)
|
CompanyRegister::Client.define_singleton_method(:new, original_new_method)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue