mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Working domain renewal
This commit is contained in:
parent
218ecb3317
commit
684a4ab4f1
4 changed files with 14 additions and 6 deletions
|
@ -134,7 +134,13 @@ describe 'EPP Domain', epp: true do
|
|||
context 'with valid domain' do
|
||||
before(:each) { Fabricate(:domain, name: 'example.ee') }
|
||||
|
||||
|
||||
it 'renews a domain' do
|
||||
response = epp_request('domains/renew.xml')
|
||||
exDate = response[:parsed].css('renData exDate').text
|
||||
name = response[:parsed].css('renData name').text
|
||||
expect(exDate).to eq ('2015-08-07 00:00:00 UTC')
|
||||
expect(name).to eq ('example.ee')
|
||||
end
|
||||
end
|
||||
|
||||
it 'checks a domain' do
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<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:curExpDate>2014-08-07</domain:curExpDate>
|
||||
<domain:period unit="y">1</domain:period>
|
||||
</domain:renew>
|
||||
</renew>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue