mirror of
https://github.com/internetee/registry.git
synced 2025-07-13 14:35:05 +02:00
Add detailed error messages on EPP login #2716
This commit is contained in:
parent
bb5870c30f
commit
533e3bc65c
4 changed files with 33 additions and 17 deletions
|
@ -25,7 +25,7 @@ describe 'EPP Session', epp: true do
|
|||
it 'does not log in with invalid user' do
|
||||
wrong_user = @epp_xml.session.login(clID: { value: 'wrong-user' }, pw: { value: 'ghyt9e4fu' })
|
||||
response = epp_plain_request(wrong_user)
|
||||
response[:msg].should == 'Authentication error; server closing connection'
|
||||
response[:msg].should == 'Authentication error; server closing connection (API user not found)'
|
||||
response[:result_code].should == '2501'
|
||||
response[:clTRID].should == 'ABC-12345'
|
||||
end
|
||||
|
@ -36,7 +36,7 @@ describe 'EPP Session', epp: true do
|
|||
|
||||
inactive = @epp_xml.session.login(clID: { value: 'inactive-user' }, pw: { value: 'ghyt9e4fu' })
|
||||
response = epp_plain_request(inactive)
|
||||
response[:msg].should == 'Authentication error; server closing connection'
|
||||
response[:msg].should == 'Authentication error; server closing connection (API user is not active)'
|
||||
response[:result_code].should == '2501'
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue