Merge branch 'master' of github.com:domify/registry

This commit is contained in:
Martin Lensment 2015-03-10 16:13:22 +02:00
commit b91f9b1a8e
4 changed files with 22 additions and 9 deletions

View file

@ -148,8 +148,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

View file

@ -34,6 +34,7 @@ Contact Mapping protocol short version:
"birthday" # Birthday date in format in DD-MM-YYYY "birthday" # Birthday date in format in DD-MM-YYYY
<eis:legalDocument> 0-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
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-create-command-successfully-creates-a-contact) [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-create-command-successfully-creates-a-contact)
@ -67,6 +68,7 @@ Contact Mapping protocol short version:
"birthday" # Birthday date in format in DD-MM-YYYY "birthday" # Birthday date in format in DD-MM-YYYY
<eis:legalDocument> 0-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
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-update-command-is-succesful) [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-update-command-is-succesful)
@ -108,6 +110,8 @@ Contact Mapping protocol short version:
<info> 1 <info> 1
<contact:info> 1 Attribute: xmlns:contact="urn:ietf:params:xml:ns:contact-1.0" <contact:info> 1 Attribute: xmlns:contact="urn:ietf:params:xml:ns:contact-1.0"
<contact:id> 1-n Contact id <contact:id> 1-n Contact id
<contact:authInfo> 0-1 Required if registrar is not the owner of the contact.
<contact:pw> 1 Contact password. Attribute: roid="String"
<clTRID> 0-1 Client transaction id <clTRID> 0-1 Client transaction id
[EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-info-command-discloses-items-to-owner) [EXAMPLE REQUEST AND RESPONSE](/doc/epp-examples.md#epp-contact-with-valid-user-info-command-discloses-items-to-owner)

View file

@ -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

View file

@ -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