Registry lock: Notify Registrar by EPP notification

This commit is contained in:
Karl Erik Õunapuu 2021-02-09 16:27:15 +02:00
parent 5de0645d41
commit 66dfa730ec
No known key found for this signature in database
GPG key ID: C9DD647298A34764
3 changed files with 17 additions and 3 deletions

View file

@ -18,11 +18,11 @@ class DomainUpdateConfirmJobTest < ActiveSupport::TestCase
super
end
def test_registrant_locked_domain
def test_registrant_locked_domain
refute @domain.locked_by_registrant?
@domain.apply_registry_lock
assert @domain.locked_by_registrant?
assert_equal(@domain.registrar.notifications.last.text, 'Domain has been locked by registrant')
assert_equal(@domain.registrar.notifications.last.text, "Domain #{@domain.name} has been unlocked by registrant")
end
def test_registrant_unlocked_domain
@ -31,7 +31,7 @@ class DomainUpdateConfirmJobTest < ActiveSupport::TestCase
assert @domain.locked_by_registrant?
@domain.remove_registry_lock
refute @domain.locked_by_registrant?
assert_equal(@domain.registrar.notifications.last.text, 'Domain has been unlocked by registrant')
assert_equal(@domain.registrar.notifications.last.text, "Domain #{@domain.name} has been unlocked by registrant")
end
def test_rejected_registrant_verification_notifies_registrar