mirror of
https://github.com/internetee/registry.git
synced 2025-06-12 07:34:45 +02:00
33 lines
876 B
Ruby
33 lines
876 B
Ruby
require 'application_system_test_case'
|
|
|
|
class RegistrarAreaXmlConsolesTest < ApplicationSystemTestCase
|
|
setup do
|
|
sign_in users(:api_bestnames)
|
|
end
|
|
|
|
def test_epp_server_does_not_response
|
|
visit registrar_xml_console_path
|
|
fill_in 'payload', with: schema_example
|
|
click_on 'Send EPP Request'
|
|
|
|
el = page.find('.CodeRay', visible: :all)
|
|
assert el.text.include? 'CONNECTION ERROR - Is the EPP server running?'
|
|
end
|
|
|
|
private
|
|
|
|
def schema_example
|
|
<<~XML
|
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
|
|
<command>
|
|
<check>
|
|
<domain:check xmlns:domain="https://epp.tld.ee/schema/domain-ee-1.2.xsd">
|
|
<domain:name>auction.test</domain:name>
|
|
</domain:check>
|
|
</check>
|
|
</command>
|
|
</epp>
|
|
XML
|
|
end
|
|
end
|