Api log contains only username + refactor #2793

This commit is contained in:
Priit Tark 2015-07-27 23:00:01 +03:00
parent 682d2918ce
commit 7f44227370
8 changed files with 33 additions and 42 deletions

View file

@ -47,7 +47,7 @@ describe 'EPP Session', epp: true do
log = ApiLog::EppLog.last
log.request_command.should == 'login'
log.request_successful.should == false
log.api_user_name.should == '2-api-inactive-user'
log.api_user_name.should == 'inactive-user'
end
it 'prohibits further actions unless logged in' do
@ -88,7 +88,7 @@ describe 'EPP Session', epp: true do
log = ApiLog::EppLog.last
log.request_command.should == 'login'
log.request_successful.should == true
log.api_user_name.should == '1-api-gitlab'
log.api_user_name.should == 'gitlab'
end
it 'does not log in twice' do
@ -104,7 +104,7 @@ describe 'EPP Session', epp: true do
log = ApiLog::EppLog.last
log.request_command.should == 'login'
log.request_successful.should == false
log.api_user_name.should == '1-api-gitlab'
log.api_user_name.should == 'gitlab'
end
it 'logs out epp user' do