mirror of
https://github.com/internetee/registry.git
synced 2025-07-01 16:53:37 +02:00
Improve test #2716
This commit is contained in:
parent
080a46c7b2
commit
2a1e8a325d
1 changed files with 10 additions and 0 deletions
|
@ -28,6 +28,11 @@ describe 'EPP Session', epp: true do
|
||||||
response[:msg].should == 'Authentication error; server closing connection (API user not found)'
|
response[:msg].should == 'Authentication error; server closing connection (API user not found)'
|
||||||
response[:result_code].should == '2501'
|
response[:result_code].should == '2501'
|
||||||
response[:clTRID].should == 'ABC-12345'
|
response[:clTRID].should == 'ABC-12345'
|
||||||
|
|
||||||
|
log = ApiLog::EppLog.last
|
||||||
|
log.request_command.should == 'login'
|
||||||
|
log.request_successful.should == false
|
||||||
|
log.api_user_name.should == 'api-public'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not log in with inactive user' do
|
it 'does not log in with inactive user' do
|
||||||
|
@ -38,6 +43,11 @@ describe 'EPP Session', epp: true do
|
||||||
response = epp_plain_request(inactive)
|
response = epp_plain_request(inactive)
|
||||||
response[:msg].should == 'Authentication error; server closing connection (API user is not active)'
|
response[:msg].should == 'Authentication error; server closing connection (API user is not active)'
|
||||||
response[:result_code].should == '2501'
|
response[:result_code].should == '2501'
|
||||||
|
|
||||||
|
log = ApiLog::EppLog.last
|
||||||
|
log.request_command.should == 'login'
|
||||||
|
log.request_successful.should == false
|
||||||
|
log.api_user_name.should == '2-api-inactive-user'
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'prohibits further actions unless logged in' do
|
it 'prohibits further actions unless logged in' do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue