mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Added custom contact id support
This commit is contained in:
parent
aa5cc83344
commit
767f7bb6df
13 changed files with 195 additions and 42 deletions
|
@ -11,8 +11,6 @@ describe 'EPP Domain', epp: true do
|
|||
|
||||
login_as :registrar1
|
||||
|
||||
Contact.skip_callback(:create, :before, :generate_code)
|
||||
|
||||
Fabricate(:contact, code: 'citizen_1234')
|
||||
Fabricate(:contact, code: 'sh8013')
|
||||
Fabricate(:contact, code: 'sh801333')
|
||||
|
@ -254,8 +252,8 @@ describe 'EPP Domain', epp: true do
|
|||
})
|
||||
|
||||
response = epp_plain_request(xml, :xml)
|
||||
response[:result_code].should == '2005'
|
||||
response[:msg].should == 'Hostname is invalid'
|
||||
response[:result_code].should == '2005'
|
||||
end
|
||||
|
||||
it 'checks hostAttr presence' do
|
||||
|
@ -271,8 +269,8 @@ describe 'EPP Domain', epp: true do
|
|||
})
|
||||
|
||||
response = epp_plain_request(xml, :xml)
|
||||
response[:result_code].should == '2003'
|
||||
response[:msg].should == 'Required parameter missing: create > create > ns > hostAttr'
|
||||
response[:result_code].should == '2003'
|
||||
end
|
||||
|
||||
it 'creates domain with nameservers with ips' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue