mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Add reserved domain create test #2565
This commit is contained in:
parent
b6dd532171
commit
664d49c37a
1 changed files with 17 additions and 0 deletions
|
@ -227,6 +227,23 @@ describe 'EPP Domain', epp: true do
|
|||
response[:result_code].should == '2304'
|
||||
response[:msg].should == 'Domain is reserved and requires correct auth info'
|
||||
response[:clTRID].should == 'ABC-12345'
|
||||
|
||||
xml = domain_create_xml(name: { value: '1162.ee' }, authInfo: { pw: { value: 'wrong_pw' } })
|
||||
response = epp_plain_request(xml)
|
||||
response[:result_code].should == '2304'
|
||||
response[:msg].should == 'Domain is reserved and requires correct auth info'
|
||||
end
|
||||
|
||||
it 'creates a reserved domain with correct auth info' do
|
||||
xml = domain_create_xml(name: { value: '1162.ee' }, authInfo: { pw: { value: 'abc' } })
|
||||
|
||||
response = epp_plain_request(xml)
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
response[:result_code].should == '1000'
|
||||
|
||||
d = Domain.last
|
||||
d.statuses.should match_array(['reserved'])
|
||||
d.auth_info.should_not == 'abc' # should generate entirely new auth info after domain create
|
||||
end
|
||||
|
||||
it 'does not create blocked domain' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue