mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 13:44:47 +02:00
parent
3501a752d3
commit
cf43ce2e7c
1 changed files with 8 additions and 0 deletions
|
@ -84,6 +84,14 @@ class EppDomainTransferRequestTest < ActionDispatch::IntegrationTest
|
||||||
assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code]
|
assert_equal '2105', Nokogiri::XML(response.body).at_css('result')[:code]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_same_registrar
|
||||||
|
assert_no_difference -> { @domain.transfers.size } do
|
||||||
|
post '/epp/command/transfer', { frame: request_xml }, { 'HTTP_COOKIE' => 'session=api_bestnames' }
|
||||||
|
end
|
||||||
|
|
||||||
|
assert_equal '2002', Nokogiri::XML(response.body).at_css('result')[:code]
|
||||||
|
end
|
||||||
|
|
||||||
def test_wrong_transfer_code
|
def test_wrong_transfer_code
|
||||||
request_xml = <<-XML
|
request_xml = <<-XML
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue