mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
Add test
This commit is contained in:
parent
958e370650
commit
1fb4cbd86f
1 changed files with 17 additions and 0 deletions
17
test/integration/epp/hello_test.rb
Normal file
17
test/integration/epp/hello_test.rb
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
require 'test_helper'
|
||||||
|
|
||||||
|
class EppHelloTest < EppTestCase
|
||||||
|
def test_anonymous_user_is_able_to_access
|
||||||
|
request_xml = <<-XML
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
|
||||||
|
<hello/>
|
||||||
|
</epp>
|
||||||
|
XML
|
||||||
|
|
||||||
|
get '/epp/session/hello', { frame: request_xml }, 'HTTP_COOKIE' => 'session=non-existent'
|
||||||
|
|
||||||
|
response_xml = Nokogiri::XML(response.body)
|
||||||
|
assert_equal 'EPP server (EIS)', response_xml.at_css('greeting > svID').text
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Add a link
Reference in a new issue