mirror of
https://github.com/internetee/registry.git
synced 2025-07-20 09:46:09 +02:00
fixed
This commit is contained in:
parent
a336ee95f8
commit
72c9e894fa
1 changed files with 6 additions and 30 deletions
|
@ -20,13 +20,6 @@ class EppDomainTransferRequestTest < EppTestCase
|
|||
@domain.tech_domain_contacts[0].update!(contact_id: new_contact.id)
|
||||
@domain.reload
|
||||
|
||||
puts
|
||||
puts "test_transfer_domain_with_contacts_if_registrant_and_tech_are_shared"
|
||||
puts "Registrar id #{new_contact.id}"
|
||||
puts "Tech #{@domain.tech_domain_contacts[0].contact_id}"
|
||||
puts "Tech #{@domain.tech_domain_contacts[1].contact_id}"
|
||||
puts "Admin #{@domain.admin_domain_contacts[0].contact_id}"
|
||||
|
||||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
||||
|
@ -35,48 +28,33 @@ class EppDomainTransferRequestTest < EppTestCase
|
|||
registrar_id = @domain.registrar.id
|
||||
new_contact_2 = Contact.find_by(registrar_id: registrar_id)
|
||||
|
||||
puts "Registrar id #{new_contact_2.id}"
|
||||
puts "Tech #{@domain.tech_domain_contacts[0].contact_id}"
|
||||
puts "Tech #{@domain.tech_domain_contacts[1].contact_id}"
|
||||
puts "Admin #{@domain.admin_domain_contacts[0].contact_id}"
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
result_hash = @domain.contacts.pluck(:original_id).group_by(&:itself).transform_values(&:count)
|
||||
|
||||
puts "Result hash #{result_hash}"
|
||||
assert result_hash[new_contact.id] < 2
|
||||
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.admin_domain_contacts[0].update!(contact_id: new_contact.id)
|
||||
|
||||
# ????????? need to find out
|
||||
@domain.tech_domain_contacts[1].delete
|
||||
@domain.reload
|
||||
|
||||
puts
|
||||
puts "test_transfer_domain_with_contacts_if_registrant_and_admin_are_shared"
|
||||
puts "Registrar id #{new_contact.id}"
|
||||
puts "Tech 1 #{@domain.tech_domain_contacts[0].contact_id}" # ?????
|
||||
puts "Tech 2 #{@domain.tech_domain_contacts[1].contact_id}"
|
||||
puts "Admin #{@domain.admin_domain_contacts[0].contact_id}"
|
||||
# ??????????????????????????
|
||||
|
||||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
||||
@domain.reload
|
||||
|
||||
registrar_id = @domain.registrar.id
|
||||
new_contact_2 = Contact.find_by(registrar_id: registrar_id)
|
||||
|
||||
puts "Registrar id #{new_contact_2.id}"
|
||||
puts "Tech 1 #{@domain.tech_domain_contacts[0].contact_id}"
|
||||
puts "Tech 2 #{@domain.tech_domain_contacts[1].contact_id}"
|
||||
puts "Admin #{@domain.admin_domain_contacts[0].contact_id}"
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
result_hash = @domain.contacts.pluck(:original_id).group_by(&:itself).transform_values(&:count)
|
||||
puts "Result hash #{result_hash}"
|
||||
|
||||
assert result_hash[new_contact.id] < 2
|
||||
end
|
||||
|
||||
|
@ -88,8 +66,6 @@ class EppDomainTransferRequestTest < EppTestCase
|
|||
post epp_transfer_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_goodnames' }
|
||||
|
||||
@domain.reload
|
||||
|
||||
assert_epp_response :completed_successfully
|
||||
result_hash = @domain.contacts.pluck(:original_id).group_by(&:itself).transform_values(&:count)
|
||||
assert_equal result_hash[contact_id], 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue