mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 20:18:22 +02:00
Allow registrar to see other registrars domains
This commit is contained in:
parent
daa4fd16c9
commit
1333a4ffe4
3 changed files with 32 additions and 4 deletions
|
@ -1857,7 +1857,7 @@ describe 'EPP Domain', epp: true do
|
|||
inf_data.css('status').first[:s].should == 'ok'
|
||||
end
|
||||
|
||||
it 'can not see other registrar domains' do
|
||||
it 'can not see other registrar domains with invalid password' do
|
||||
login_as :registrar2 do
|
||||
response = epp_plain_request(domain_info_xml(name: { value: domain.name }), :xml)
|
||||
response[:result_code].should == '2201'
|
||||
|
@ -1865,6 +1865,31 @@ describe 'EPP Domain', epp: true do
|
|||
end
|
||||
end
|
||||
|
||||
it 'can see other registrar domains without password' do
|
||||
login_as :registrar2 do
|
||||
response = epp_plain_request(domain_info_xml(
|
||||
name: { value: domain.name },
|
||||
authInfo: nil
|
||||
), :xml)
|
||||
|
||||
response[:result_code].should == '1000'
|
||||
response[:parsed].css('authInfo pw').first.should == nil
|
||||
end
|
||||
end
|
||||
|
||||
it 'can see other registrar domains with correct password' do
|
||||
login_as :registrar2 do
|
||||
pw = domain.auth_info
|
||||
response = epp_plain_request(domain_info_xml(
|
||||
name: { value: domain.name },
|
||||
authInfo: { pw: { value: pw } }
|
||||
), :xml)
|
||||
|
||||
response[:result_code].should == '1000'
|
||||
response[:parsed].css('authInfo pw').text.should == pw
|
||||
end
|
||||
end
|
||||
|
||||
### DELETE ###
|
||||
it 'deletes domain' do
|
||||
response = epp_plain_request(@epp_xml.domain.delete({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue