Add tests & fixes for epp contact

This commit is contained in:
Alex Sherman 2021-06-03 12:56:18 +05:00
parent 860c3c8008
commit 7163695ad1
10 changed files with 84 additions and 29 deletions

View file

@ -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