Nameserver count validation 1

This commit is contained in:
Martin Lensment 2014-08-04 12:49:41 +03:00
parent d01944fe21
commit 86dc8321c6
6 changed files with 82 additions and 1 deletions

View file

@ -66,6 +66,18 @@ describe 'EPP Domain', epp: true do
expect(response[:result_code]).to eq('2306')
expect(response[:msg]).to eq('Required parameter missing - registrant')
end
it 'does not create domain without nameservers' do
response = epp_request('domains/create_wo_nameservers.xml')
expect(response[:result_code]).to eq('2306')
expect(response[:msg]).to eq('Required parameter missing - nameserver')
end
it 'does not create domain with too many nameservers', pending: true do
response = epp_request('domains/create_w_too_many_nameservers.xml')
expect(response[:result_code]).to eq('2306')
expect(response[:msg]).to eq('Domain must have 1-13 nameservers')
end
end
context 'with juridical persion as an owner' do