mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 11:16:00 +02:00
Modify tests to make sure working pair of contacts is identical
This commit is contained in:
parent
f3f89bedd7
commit
3c0f7b3a86
2 changed files with 7 additions and 2 deletions
|
@ -7,7 +7,12 @@ class APIDomainAdminContactsTest < ApplicationIntegrationTest
|
|||
|
||||
@admin_new.update(ident: @admin_current.ident,
|
||||
ident_type: @admin_current.ident_type,
|
||||
ident_country_code: @admin_current.ident_country_code)
|
||||
ident_country_code: @admin_current.ident_country_code,
|
||||
name: @admin_current.name,
|
||||
email: @admin_current.email,
|
||||
phone: @admin_current.phone,
|
||||
fax: @admin_current.fax,
|
||||
org_name: @admin_current.org_name)
|
||||
end
|
||||
|
||||
def test_replace_all_admin_contacts_when_ident_data_doesnt_match
|
||||
|
@ -25,6 +30,7 @@ class APIDomainAdminContactsTest < ApplicationIntegrationTest
|
|||
end
|
||||
|
||||
def test_replace_all_admin_contacts_of_the_current_registrar
|
||||
assert @admin_new.identical_to?(@admin_current)
|
||||
patch '/repp/v1/domains/admin_contacts', params: { current_contact_id: @admin_current.code,
|
||||
new_contact_id: @admin_new.code },
|
||||
headers: { 'HTTP_AUTHORIZATION' => http_auth_key }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue