mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Contact test for new registrant after domain transfer
This commit is contained in:
parent
b369bfeef6
commit
541c2d769a
1 changed files with 22 additions and 0 deletions
|
@ -12,6 +12,28 @@ class EppDomainTransferRequestTest < EppTestCase
|
|||
Setting.transfer_wait_time = @original_transfer_wait_time
|
||||
end
|
||||
|
||||
def test_new_contacts_should_be_created_after_transfer_domain
|
||||
registrar_id = @domain.registrar.id
|
||||
contacts_id_values = []
|
||||
|
||||
contact_id = Contact.find_by(registrar_id: registrar_id)
|
||||
|
||||
@domain.domain_contacts[0].update!(contact_id: contact_id.id)
|
||||
@domain.domain_contacts[1].update!(contact_id: contact_id.id)
|
||||
|
||||
@domain.domain_contacts.each do |contact|
|
||||
contacts_id_values.push(contact.contact_id)
|
||||
end
|
||||
|
||||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
||||
@domain.reload
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
assert_equal @domain.domain_contacts[0].contact_id, @domain.domain_contacts[1].contact_id
|
||||
end
|
||||
|
||||
def test_transfers_domain_at_once
|
||||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue