mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Contact info request should return smaal contact info when pw is blank
This commit is contained in:
parent
6f9660d413
commit
a994767330
2 changed files with 19 additions and 3 deletions
|
@ -519,7 +519,7 @@ describe 'EPP Contact', epp: true do
|
|||
response[:results].count.should == 1
|
||||
end
|
||||
|
||||
it 'returns no authorization error for wrong user but correct pw' do
|
||||
it 'returns no authorization error for wrong user but correct password' do
|
||||
login_as :registrar2 do
|
||||
response = info_request
|
||||
|
||||
|
@ -534,7 +534,7 @@ describe 'EPP Contact', epp: true do
|
|||
end
|
||||
end
|
||||
|
||||
it 'returns authorization error for wrong user and wrong pw' do
|
||||
it 'returns authorization error for wrong user and wrong password' do
|
||||
login_as :registrar2 do
|
||||
response = info_request({ authInfo: { pw: { value: 'wrong-pw' } } })
|
||||
response[:msg].should == 'Authorization error'
|
||||
|
@ -547,6 +547,20 @@ describe 'EPP Contact', epp: true do
|
|||
contact.css('voice').first.try(:text).should == nil
|
||||
end
|
||||
end
|
||||
|
||||
it 'returns no authorization error for wrong user and no password' do
|
||||
login_as :registrar2 do
|
||||
response = info_request({ authInfo: { pw: { value: '' } } })
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
response[:result_code].should == '1000'
|
||||
response[:results].count.should == 1
|
||||
|
||||
contact = response[:parsed].css('resData infData')
|
||||
contact.css('postalInfo addr city').first.try(:text).should == nil
|
||||
contact.css('email').first.try(:text).should == nil
|
||||
contact.css('voice').first.try(:text).should == nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context 'renew command' do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue