mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
parent
de58f71756
commit
da07639457
2 changed files with 38 additions and 2 deletions
|
@ -1,26 +0,0 @@
|
|||
require 'test_helper'
|
||||
|
||||
class Epp::DomainTransferTest < ActionDispatch::IntegrationTest
|
||||
def test_transfers_domain
|
||||
request_xml = <<-XML
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<epp xmlns="https://epp.tld.ee/schema/epp-ee-1.0.xsd">
|
||||
<command>
|
||||
<transfer op="request">
|
||||
<domain:transfer xmlns:domain="https://epp.tld.ee/schema/domain-eis-1.0.xsd">
|
||||
<domain:name>shop.test</domain:name>
|
||||
<domain:authInfo>
|
||||
<domain:pw>65078d5</domain:pw>
|
||||
</domain:authInfo>
|
||||
</domain:transfer>
|
||||
</transfer>
|
||||
</command>
|
||||
</epp>
|
||||
XML
|
||||
|
||||
session_id = epp_sessions(:api_goodnames).session_id
|
||||
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => "session=#{session_id}" }
|
||||
assert_response :ok
|
||||
assert_equal registrars(:goodnames), domains(:shop).registrar
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue