mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 08:43:37 +02:00
Domain transfere now not require LegalDoc
This commit is contained in:
parent
a299aa5756
commit
1d8e43b899
3 changed files with 18 additions and 9 deletions
|
@ -147,8 +147,6 @@ class Epp::DomainsController < EppController
|
||||||
|
|
||||||
@prefix = nil
|
@prefix = nil
|
||||||
requires_attribute 'transfer', 'op', values: %(approve, query, reject)
|
requires_attribute 'transfer', 'op', values: %(approve, query, reject)
|
||||||
|
|
||||||
requires 'extension > extdata > legalDocument'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
## DELETE
|
## DELETE
|
||||||
|
|
|
@ -144,9 +144,9 @@ Domain name mapping protocol short version:
|
||||||
Attribute: hosts="all / TODO"
|
Attribute: hosts="all / TODO"
|
||||||
<domain:authInfo> 1
|
<domain:authInfo> 1
|
||||||
<domain:pw> 1 Domain password. Attribute: roid="String"
|
<domain:pw> 1 Domain password. Attribute: roid="String"
|
||||||
<extension> 1
|
<extension> 0-1
|
||||||
<eis:extdata> 1 Attribute: xmlns:eis="urn:ee:eis:xml:epp:eis-1.0"
|
<eis:extdata> 0-1 Attribute: xmlns:eis="urn:ee:eis:xml:epp:eis-1.0"
|
||||||
<eis:legalDocument> 1 Base64 encoded document.
|
<eis:legalDocument> 0-1 Base64 encoded document.
|
||||||
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
Attribute: type="pdf/bdoc/ddoc/zip/rar/gz/tar/7z"
|
||||||
<clTRID> 0-1 Client transaction id
|
<clTRID> 0-1 Client transaction id
|
||||||
|
|
||||||
|
|
|
@ -856,7 +856,7 @@ describe 'EPP Domain', epp: true do
|
||||||
create_settings
|
create_settings
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not create a domain transfer without legal document' do
|
it 'creates transfer successfully without legal document' do
|
||||||
pw = domain.auth_info
|
pw = domain.auth_info
|
||||||
xml = domain_transfer_xml({
|
xml = domain_transfer_xml({
|
||||||
name: { value: domain.name },
|
name: { value: domain.name },
|
||||||
|
@ -865,9 +865,20 @@ describe 'EPP Domain', epp: true do
|
||||||
|
|
||||||
login_as :registrar2 do
|
login_as :registrar2 do
|
||||||
response = epp_plain_request(xml, :xml)
|
response = epp_plain_request(xml, :xml)
|
||||||
response[:result_code].should == '2003'
|
response[:msg].should == 'Command completed successfully'
|
||||||
response[:msg].should ==
|
response[:result_code].should == '1000'
|
||||||
'Required parameter missing: extension > extdata > legalDocument [legal_document]'
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'should not creates transfer without password' do
|
||||||
|
xml = domain_transfer_xml({
|
||||||
|
name: { value: domain.name }
|
||||||
|
})
|
||||||
|
|
||||||
|
login_as :registrar2 do
|
||||||
|
response = epp_plain_request(xml, :xml)
|
||||||
|
response[:msg].should == 'Authorization error'
|
||||||
|
response[:result_code].should == '2201'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue