mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 18:26:06 +02:00
Attach owner to technical
This commit is contained in:
parent
3c3a8bfb47
commit
f2d45f4317
4 changed files with 46 additions and 3 deletions
|
@ -55,6 +55,26 @@ describe 'EPP Domain', epp: true do
|
|||
end
|
||||
end
|
||||
|
||||
context 'with juridical persion as an owner' do
|
||||
before(:each) { Fabricate(:contact, code: 'jd1234', ident_type: 'ico')}
|
||||
|
||||
it 'creates a domain with contacts' do
|
||||
Fabricate(:contact, code: 'sh8013')
|
||||
Fabricate(:contact, code: 'sh801333')
|
||||
|
||||
response = epp_request('domains/create_wo_tech_contact.xml')
|
||||
expect(response[:result_code]).to eq('1000')
|
||||
expect(response[:msg]).to eq('Command completed successfully')
|
||||
expect(response[:clTRID]).to eq('ABC-12345')
|
||||
|
||||
expect(Domain.first.tech_contacts.count).to eq 1
|
||||
expect(Domain.first.admin_contacts.count).to eq 1
|
||||
|
||||
tech_contact = Domain.first.tech_contacts.first
|
||||
expect(tech_contact.code).to eq('jd1234')
|
||||
end
|
||||
end
|
||||
|
||||
it 'checks a domain' do
|
||||
response = epp_request('domains/check.xml')
|
||||
expect(response[:result_code]).to eq('1000')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue