mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Refactor
This commit is contained in:
parent
89c67ca637
commit
d66527ac80
7 changed files with 5 additions and 5 deletions
0
app/views/epp/domains/check.xml.builder
Normal file
0
app/views/epp/domains/check.xml.builder
Normal 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.response do
|
||||
xml.result('code' => '1000') do
|
||||
xml.msg('Command completed successfully')
|
||||
xml.msg 'Command completed successfully'
|
||||
end
|
||||
end
|
||||
|
||||
xml.trID do
|
||||
xml.clTRID params[:clTRID]
|
||||
xml.svTRID @svTRID
|
||||
end
|
||||
end
|
||||
|
|
|
@ -6,7 +6,6 @@ xml.epp('xmlns' => 'urn:ietf:params:xml:ns:epp-1.0', 'xmlns:xsi' => 'http://www.
|
|||
xml.svcMenu do
|
||||
xml.version '1.0'
|
||||
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/domain-1.4'
|
||||
xml.objURI 'http://www.nic.cz/xml/epp/nsset-1.2'
|
||||
|
|
|
@ -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.response do
|
||||
xml.result('code' => '1500') do
|
||||
xml.msg('Command completed successfully; ending session', 'lang' => 'en')
|
||||
xml.msg 'Command completed successfully; ending session'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ describe 'EPP Domain', epp: true do
|
|||
before(:each) { Fabricate(:epp_user) }
|
||||
|
||||
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[:msg]).to eq('Command completed successfully')
|
||||
expect(response[:clTRID]).to eq('dpbx005#10-01-29at19:21:47')
|
||||
|
|
|
@ -28,7 +28,7 @@ describe 'EPP Session', epp: true do
|
|||
end
|
||||
|
||||
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[:msg]).to eq('You need to login first.')
|
||||
expect(response[:clTRID]).to eq('dpbx005#10-01-29at19:21:47')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue