mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 01:33:36 +02:00
Add a new test to period
This commit is contained in:
parent
47be521a9d
commit
7cd2d1aec4
3 changed files with 32 additions and 1 deletions
|
@ -108,6 +108,13 @@ describe 'EPP Domain', epp: true do
|
|||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
expect(Domain.first.valid_to).to eq(Date.today + 1.year)
|
||||
end
|
||||
|
||||
it 'does not create a domain with invalid period' do
|
||||
response = epp_request('domains/create_w_invalid_period.xml')
|
||||
expect(response[:results][0][:result_code]).to eq('2004')
|
||||
expect(response[:results][0][:msg]).to eq('Period must add up to 1, 2 or 3 years')
|
||||
expect(response[:results][0][:value]).to eq('843')
|
||||
end
|
||||
end
|
||||
|
||||
context 'with juridical persion as an owner' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue