08cdf65b9e
Broken storage used to be used to test situations where the Git storage wasn't being reached. These days we can just mock the Gitaly response. But given the broken storage is removed now, Gitaly can take over control of the storage being reachable. If it's not, Gitaly won't boot. That's nice for situations where a disk wasn't mounted for instance. Gitaly MR: https://gitlab.com/gitlab-org/gitaly/merge_requests/675
7 lines
206 B
Ruby
7 lines
206 B
Ruby
RSpec.configure do |config|
|
|
config.before(:each, :broken_storage) do
|
|
allow(Gitlab::GitalyClient).to receive(:call) do
|
|
raise GRPC::Unavailable.new('Gitaly broken in this spec')
|
|
end
|
|
end
|
|
end
|