Commit 8a2aab44 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Merge branch 'tc-test-admin-log-links' into 'master'

Put Admin loggers in before_action for easier overriding in EE

See merge request !14081
parents ba39b26c ddf892b9
class Admin::LogsController < Admin::ApplicationController class Admin::LogsController < Admin::ApplicationController
before_action :loggers
def show def show
@loggers = [ end
private
def loggers
@loggers ||= [
Gitlab::AppLogger, Gitlab::AppLogger,
Gitlab::GitLogger, Gitlab::GitLogger,
Gitlab::EnvironmentLogger, Gitlab::EnvironmentLogger,
......
...@@ -8,8 +8,10 @@ describe 'Admin browses logs' do ...@@ -8,8 +8,10 @@ describe 'Admin browses logs' do
it 'shows available log files' do it 'shows available log files' do
visit admin_logs_path visit admin_logs_path
expect(page).to have_content 'test.log' expect(page).to have_link 'application.log'
expect(page).to have_content 'githost.log' expect(page).to have_link 'githost.log'
expect(page).to have_content 'application.log' expect(page).to have_link 'test.log'
expect(page).to have_link 'sidekiq.log'
expect(page).to have_link 'repocheck.log'
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment