mirror of
https://github.com/internetee/registry.git
synced 2025-07-02 17:23:34 +02:00
Allow creating domain with custom auth info
This commit is contained in:
parent
eff8dd5d7a
commit
3c934d70e8
2 changed files with 18 additions and 0 deletions
|
@ -147,6 +147,20 @@ describe 'EPP Domain', epp: true do
|
|||
d.reserved.should == false
|
||||
end
|
||||
|
||||
it 'creates a domain with custom auth info' do
|
||||
dn = next_domain_name
|
||||
response = epp_plain_request(domain_create_xml({
|
||||
name: { value: dn },
|
||||
authInfo: { pw: { value: 'asdasd' } }
|
||||
}))
|
||||
|
||||
d = Domain.last
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
response[:result_code].should == '1000'
|
||||
|
||||
d.auth_info.should == 'asdasd'
|
||||
end
|
||||
|
||||
# it 'creates ria.ee with valid ds record' do
|
||||
# xml = domain_create_xml({
|
||||
# name: { value: 'ria.ee' }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue