mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 15:14:47 +02:00
Add tests & fixes for epp contact
This commit is contained in:
parent
860c3c8008
commit
7163695ad1
10 changed files with 84 additions and 29 deletions
|
@ -24,6 +24,9 @@ class EppContactDeleteBaseTest < EppTestCase
|
|||
post epp_delete_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
end
|
||||
|
||||
response_xml = Nokogiri::XML(response.body)
|
||||
assert_correct_against_schema response_xml
|
||||
assert_epp_response :completed_successfully
|
||||
end
|
||||
|
||||
|
@ -50,6 +53,8 @@ class EppContactDeleteBaseTest < EppTestCase
|
|||
post epp_delete_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
|
||||
response_xml = Nokogiri::XML(response.body)
|
||||
assert_correct_against_schema response_xml
|
||||
assert Contact.exists?(id: contact.id)
|
||||
assert_epp_response :object_status_prohibits_operation
|
||||
end
|
||||
|
@ -77,6 +82,8 @@ class EppContactDeleteBaseTest < EppTestCase
|
|||
post epp_delete_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
|
||||
response_xml = Nokogiri::XML(response.body)
|
||||
assert_correct_against_schema response_xml
|
||||
assert Contact.exists?(id: contact.id)
|
||||
assert_epp_response :object_status_prohibits_operation
|
||||
end
|
||||
|
@ -105,6 +112,8 @@ class EppContactDeleteBaseTest < EppTestCase
|
|||
post epp_delete_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
end
|
||||
response_xml = Nokogiri::XML(response.body)
|
||||
assert_correct_against_schema response_xml
|
||||
assert_epp_response :object_association_prohibits_operation
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue