mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 09:57:23 +02:00
Admin contact cannot be juridical
This commit is contained in:
parent
bc80274109
commit
20be38fd0b
4 changed files with 359 additions and 277 deletions
|
@ -888,6 +888,18 @@ describe 'EPP Domain', epp: true do
|
|||
expect(Domain.count).to eq 0
|
||||
expect(DomainContact.count).to eq 0
|
||||
end
|
||||
|
||||
it 'cannot assign juridical person as admin contact' do
|
||||
xml = domain_create_xml({
|
||||
_anonymus: [
|
||||
{ contact: { value: 'jd1234', attrs: { type: 'admin' } } }
|
||||
]
|
||||
})
|
||||
|
||||
response = epp_request(xml, :xml)
|
||||
expect(response[:result_code]).to eq('2306')
|
||||
expect(response[:msg]).to eq('Admin contact can be only citizen')
|
||||
end
|
||||
end
|
||||
|
||||
context 'with valid domain' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue