25 lines
550 B
Ruby
25 lines
550 B
Ruby
require 'spec_helper'
|
|
|
|
describe Admin::HealthCheckController, broken_storage: true do
|
|
let(:admin) { create(:admin) }
|
|
|
|
before do
|
|
sign_in(admin)
|
|
end
|
|
|
|
describe 'GET show' do
|
|
it 'loads the git storage health information' do
|
|
get :show
|
|
|
|
expect(assigns[:failing_storage_statuses]).not_to be_nil
|
|
end
|
|
end
|
|
|
|
describe 'POST reset_storage_health' do
|
|
it 'resets all storage health information' do
|
|
expect(Gitlab::Git::Storage::CircuitBreaker).to receive(:reset_all!)
|
|
|
|
post :reset_storage_health
|
|
end
|
|
end
|
|
end
|