mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 03:58:27 +02:00
added response for wrong epp path
This commit is contained in:
parent
5b8b18f584
commit
4cf7a103c8
9 changed files with 91 additions and 28 deletions
|
@ -15,8 +15,27 @@ class EppDomainBaseTest < EppTestCase
|
|||
</epp>
|
||||
XML
|
||||
post epp_info_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
|
||||
assert_epp_response :object_does_not_exist
|
||||
end
|
||||
|
||||
def test_invalid_path
|
||||
request_xml = <<-XML
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="#{Xsd::Schema.filename(for_prefix: 'epp-ee')}">
|
||||
<command>
|
||||
<info>
|
||||
<domain:info xmlns:domain="https://afdsfs.dfdf.df">
|
||||
<domain:name>non-existent.test</domain:name>
|
||||
</domain:info>
|
||||
</info>
|
||||
</command>
|
||||
</epp>
|
||||
XML
|
||||
post epp_info_path, params: { frame: request_xml },
|
||||
headers: { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||
|
||||
assert_epp_response :wrong_schema
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue