mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Refactor domain info builder
This commit is contained in:
parent
7e5d6204c6
commit
5464e4c342
3 changed files with 22 additions and 12 deletions
|
@ -743,7 +743,7 @@ describe 'EPP Domain', epp: true do
|
|||
|
||||
d.save
|
||||
|
||||
xml = domain_info_xml(name_value: 'Example.ee')
|
||||
xml = domain_info_xml(name: { value: 'Example.ee' })
|
||||
|
||||
response = epp_request(xml, :xml)
|
||||
expect(response[:results][0][:result_code]).to eq('1000')
|
||||
|
@ -804,7 +804,7 @@ describe 'EPP Domain', epp: true do
|
|||
end
|
||||
|
||||
it 'returns error when domain can not be found' do
|
||||
response = epp_request(domain_info_xml(name_value: 'test.ee'), :xml)
|
||||
response = epp_request(domain_info_xml(name: { value: 'test.ee' }), :xml)
|
||||
expect(response[:results][0][:result_code]).to eq('2303')
|
||||
expect(response[:results][0][:msg]).to eq('Domain not found')
|
||||
end
|
||||
|
@ -952,6 +952,8 @@ describe 'EPP Domain', epp: true do
|
|||
]
|
||||
})
|
||||
|
||||
puts Nokogiri::XML(xml).to_s
|
||||
|
||||
epp_request(xml, :xml)
|
||||
|
||||
expect(d.dnskeys.count).to eq(1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue