Merge branch 'html-error-returned-for-invalid-epp-xml-request' of https://github.com/internetee/registry into html-error-returned-for-invalid-epp-xml-request

This commit is contained in:
Oleg Hasjanov 2021-04-26 15:24:00 +03:00
commit aa3bf2ff25

View file

@ -34,6 +34,13 @@ class EppBaseTest < EppTestCase
end end
end end
def test_additional_error
get '/epp/error', params: { frame: valid_request_xml },
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
assert_epp_response :unknown_command
end
def test_validates_request_xml def test_validates_request_xml
invalid_xml = <<-XML invalid_xml = <<-XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>