mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 14:44:47 +02:00
Add test to check response on /error/ epp endpoint
This commit is contained in:
parent
9c2bbd8e89
commit
ba9a485542
1 changed files with 7 additions and 0 deletions
|
@ -34,6 +34,13 @@ class EppBaseTest < EppTestCase
|
|||
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
|
||||
invalid_xml = <<-XML
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue