mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
added more scenarios-2
This commit is contained in:
parent
90e97aeddd
commit
4a5dc43202
1 changed files with 0 additions and 7 deletions
|
@ -14,29 +14,22 @@ class EppDomainTransferRequestTest < EppTestCase
|
|||
|
||||
def test_transfer_domain_with_contacts_if_registrant_and_tech_are_shared
|
||||
registrar_id = @domain.registrar.id
|
||||
|
||||
new_contact = Contact.find_by(registrar_id: registrar_id)
|
||||
|
||||
@domain.domain_contacts[1].update!(contact_id: new_contact.id)
|
||||
|
||||
puts @domain.domain_contacts[1].contact_id
|
||||
|
||||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
||||
@domain.reload
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
|
||||
puts @domain.domain_contacts[1].contact_id
|
||||
|
||||
result_hash = @domain.contacts.pluck(:original_id).group_by(&:itself).transform_values(&:count)
|
||||
assert_equal result_hash[new_contact.id], 1
|
||||
end
|
||||
|
||||
def test_transfer_domain_with_contacts_if_registrant_and_admin_are_shared
|
||||
registrar_id = @domain.registrar.id
|
||||
|
||||
new_contact = Contact.find_by(registrar_id: registrar_id)
|
||||
|
||||
@domain.domain_contacts[0].update!(contact_id: new_contact.id)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue