Skip to content

Commit

Permalink
Merge pull request #1337 from internetee/add-epp-hello-test
Browse files Browse the repository at this point in the history
Add EPP hello test
  • Loading branch information
vohmar authored Oct 8, 2019
2 parents ab9c7fa + 1fb4cbd commit 710fef8
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions test/integration/epp/hello_test.rb
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 710fef8

Please sign in to comment.