This commit is contained in:
Martin Lensment 2014-06-27 16:16:32 +03:00
parent 89c67ca637
commit d66527ac80
7 changed files with 5 additions and 5 deletions

View file

View file

@ -2,11 +2,12 @@ xml.instruct!
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd') do xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd') do
xml.response do xml.response do
xml.result('code' => '1000') do xml.result('code' => '1000') do
xml.msg('Command completed successfully') xml.msg 'Command completed successfully'
end end
end end
xml.trID do xml.trID do
xml.clTRID params[:clTRID] xml.clTRID params[:clTRID]
xml.svTRID @svTRID
end end
end end

View file

@ -6,7 +6,6 @@ xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.
xml.svcMenu do xml.svcMenu do
xml.version '1.0' xml.version '1.0'
xml.lang 'en' xml.lang 'en'
xml.lang 'cs'
xml.objURI 'http://www.nic.cz/xml/epp/contact-1.6' xml.objURI 'http://www.nic.cz/xml/epp/contact-1.6'
xml.objURI 'http://www.nic.cz/xml/epp/domain-1.4' xml.objURI 'http://www.nic.cz/xml/epp/domain-1.4'
xml.objURI 'http://www.nic.cz/xml/epp/nsset-1.2' xml.objURI 'http://www.nic.cz/xml/epp/nsset-1.2'

View file

@ -2,7 +2,7 @@ xml.instruct!
xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd') do xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', 'xsi:schemaLocation' => 'urn:ietf:params:xml:ns:epp-1.0 epp-1.0.xsd') do
xml.response do xml.response do
xml.result('code' => '1500') do xml.result('code' => '1500') do
xml.msg('Command completed successfully; ending session', 'lang' => 'en') xml.msg 'Command completed successfully; ending session'
end end
end end

View file

@ -7,7 +7,7 @@ describe 'EPP Domain', epp: true do
before(:each) { Fabricate(:epp_user) } before(:each) { Fabricate(:epp_user) }
it 'creates a domain' do it 'creates a domain' do
response = epp_request('create_domain.xml') response = epp_request('domains/create.xml')
expect(response[:result_code]).to eq('1000') expect(response[:result_code]).to eq('1000')
expect(response[:msg]).to eq('Command completed successfully') expect(response[:msg]).to eq('Command completed successfully')
expect(response[:clTRID]).to eq('dpbx005#10-01-29at19:21:47') expect(response[:clTRID]).to eq('dpbx005#10-01-29at19:21:47')

View file

@ -28,7 +28,7 @@ describe 'EPP Session', epp: true do
end end
it 'prohibits further actions unless logged in' do it 'prohibits further actions unless logged in' do
response = epp_plain_request('create_domain.xml') response = epp_plain_request('domains/create.xml')
expect(response[:result_code]).to eq('2002') expect(response[:result_code]).to eq('2002')
expect(response[:msg]).to eq('You need to login first.') expect(response[:msg]).to eq('You need to login first.')
expect(response[:clTRID]).to eq('dpbx005#10-01-29at19:21:47') expect(response[:clTRID]).to eq('dpbx005#10-01-29at19:21:47')