Basic domain renew

This commit is contained in:
Martin Lensment 2014-08-06 18:04:46 +03:00
parent d62106da20
commit b828645920
7 changed files with 69 additions and 0 deletions

View file

@ -131,6 +131,12 @@ describe 'EPP Domain', epp: true do
end
end
context 'with valid domain' do
before(:each) { Fabricate(:domain, name: 'example.ee') }
end
it 'checks a domain' do
response = epp_request('domains/check.xml')
expect(response[:result_code]).to eq('1000')

View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
<command>
<renew>
<domain:renew
xmlns:domain="urn:ietf:params:xml:ns:domain-1.0">
<domain:name>example.ee</domain:name>
<domain:curExpDate>2000-04-03</domain:curExpDate>
<domain:period unit="y">1</domain:period>
</domain:renew>
</renew>
<clTRID>ABC-12345</clTRID>
</command>
</epp>