User interface for the registry along with basic settings

This commit is contained in:
Martin Lensment 2014-08-15 14:45:53 +03:00
parent d5d1d0040b
commit ceb688902f
26 changed files with 278 additions and 32 deletions

View file

@ -240,6 +240,15 @@ describe 'EPP Domain', epp: true do
expect(response[:results][0][:result_code]).to eq('2303')
expect(response[:results][0][:msg]).to eq('Domain not found')
end
it 'updates domain', pending: true do
response = epp_request('domains/update.xml')
expect(response[:results][0][:result_code]).to eq('1000')
d = Domain.first
new_ns = d.nameservers.find_by(hostname: 'ns2.example.com')
expect(new_ns).to be_truthy
end
end
it 'checks a domain' do

View file

@ -0,0 +1,33 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<update>
<domain:update
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.ee</domain:name>
<domain:add>
<domain:ns>
<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:authInfo>
<domain:pw>2BARfoo</domain:pw>
</domain:authInfo>
</domain:chg>
</domain:update>
</update>
<clTRID>ABC-12345</clTRID>
</command>
</epp>