mirror of
https://github.com/internetee/registry.git
synced 2025-07-14 06:55:11 +02:00
Better naming and domain updating
This commit is contained in:
parent
fe54f327d9
commit
8b8a71c4d1
6 changed files with 50 additions and 22 deletions
|
@ -309,7 +309,19 @@ describe 'EPP Domain', epp: true do
|
|||
expect(response[:results][2][:result_code]).to eq('2303')
|
||||
expect(response[:results][2][:msg]).to eq('Status was not found')
|
||||
expect(response[:results][2][:value]).to eq('clientHold')
|
||||
end
|
||||
|
||||
it 'updates a domain' do
|
||||
Fabricate(:contact, code: 'mak21')
|
||||
epp_request('domains/update_add_objects.xml')
|
||||
response = epp_request('domains/update.xml')
|
||||
|
||||
expect(response[:results][0][:result_code]).to eq('1000')
|
||||
|
||||
d = Domain.last
|
||||
|
||||
expect(d.owner_contact_code).to eq('mak21')
|
||||
expect(d.auth_info).to eq('2BARfoo')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -5,24 +5,8 @@
|
|||
<domain:update
|
||||
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
|
||||
<domain:name>example.ee</domain:name>
|
||||
<domain:add>
|
||||
<domain:ns>
|
||||
<domain:hostObj>ns1.example.com</domain:hostObj>
|
||||
<domain:hostObj>ns2.example.com</domain:hostObj>
|
||||
</domain:ns>
|
||||
<domain:contact type="tech">mak21</domain:contact>
|
||||
<domain:status s="clientHold"
|
||||
lang="en">Payment overdue.</domain:status>
|
||||
</domain:add>
|
||||
<domain:rem>
|
||||
<domain:ns>
|
||||
<domain:hostObj>ns1.example.com</domain:hostObj>
|
||||
</domain:ns>
|
||||
<domain:contact type="tech">sh8013</domain:contact>
|
||||
<domain:status s="clientUpdateProhibited"/>
|
||||
</domain:rem>
|
||||
<domain:chg>
|
||||
<domain:registrant>sh8013</domain:registrant>
|
||||
<domain:registrant>mak21</domain:registrant>
|
||||
<domain:authInfo>
|
||||
<domain:pw>2BARfoo</domain:pw>
|
||||
</domain:authInfo>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue