mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Contact info request will return auth error when pw is incorrect
This commit is contained in:
parent
06b65f057c
commit
15f9b4ae50
2 changed files with 7 additions and 5 deletions
|
@ -534,11 +534,11 @@ describe 'EPP Contact', epp: true do
|
|||
end
|
||||
end
|
||||
|
||||
it 'returns no authorization error for wrong user and wrong pw' do
|
||||
it 'returns authorization error for wrong user and wrong pw' do
|
||||
login_as :registrar2 do
|
||||
response = info_request({ authInfo: { pw: { value: 'wrong-pw' } } })
|
||||
response[:msg].should == 'Command completed successfully'
|
||||
response[:result_code].should == '1000'
|
||||
response[:msg].should == 'Authorization error'
|
||||
response[:result_code].should == '2201'
|
||||
response[:results].count.should == 1
|
||||
|
||||
contact = response[:parsed].css('resData infData')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue