mirror of
https://github.com/internetee/registry.git
synced 2025-07-31 06:56:23 +02:00
transfer code change during registrant change
This commit is contained in:
parent
e2c6c9ef97
commit
8916bcd0d6
4 changed files with 31 additions and 186 deletions
|
@ -514,7 +514,6 @@ class EppDomainUpdateBaseTest < EppTestCase
|
|||
assert_correct_against_schema response_xml
|
||||
assert_epp_response :completed_successfully
|
||||
refute_includes @domain.statuses, DomainStatus::PENDING_UPDATE
|
||||
|
||||
end
|
||||
|
||||
def test_skips_verification_when_provided_registrant_is_the_same_as_current_one
|
||||
|
@ -559,6 +558,8 @@ class EppDomainUpdateBaseTest < EppTestCase
|
|||
dispute.update!(starts_at: Time.zone.now, expires_at: Time.zone.now + 5.days, closed: nil)
|
||||
new_registrant = contacts(:william)
|
||||
|
||||
old_transfer_code = @domain.transfer_code
|
||||
|
||||
assert @domain.disputed?
|
||||
|
||||
request_xml = <<-XML
|
||||
|
@ -596,6 +597,7 @@ class EppDomainUpdateBaseTest < EppTestCase
|
|||
assert_not @domain.registrant_verification_asked?
|
||||
assert_not @domain.disputed?
|
||||
assert_no_emails
|
||||
refute_equal @domain.transfer_code, old_transfer_code
|
||||
end
|
||||
|
||||
def test_dispute_password_mandatory_when_registrant_changed
|
||||
|
|
|
@ -62,6 +62,7 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
|
|||
@auth_headers['Content-Type'] = 'application/json'
|
||||
new_registrant = contacts(:william)
|
||||
refute @domain.registrant == new_registrant
|
||||
old_transfer_code = @domain.transfer_code
|
||||
|
||||
payload = {
|
||||
domain: {
|
||||
|
@ -80,6 +81,7 @@ class ReppV1DomainsUpdateTest < ActionDispatch::IntegrationTest
|
|||
assert_equal 1000, json[:code]
|
||||
assert_equal 'Command completed successfully', json[:message]
|
||||
|
||||
refute_equal old_transfer_code, @domain.transfer_code
|
||||
assert @domain.registrant.code == new_registrant.code
|
||||
refute @domain.statuses.include? DomainStatus::PENDING_UPDATE
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue