2019-09-20 18:06:35 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 06:09:01 +00:00
|
|
|
RSpec.describe 'Requests on a read-only node' do
|
2020-11-02 09:08:35 +00:00
|
|
|
context 'when db is read-only' do
|
2019-09-20 18:06:35 +00:00
|
|
|
before do
|
2020-11-02 09:08:35 +00:00
|
|
|
allow(Gitlab::Database).to receive(:read_only?) { true }
|
2019-09-20 18:06:35 +00:00
|
|
|
end
|
|
|
|
|
2020-11-02 09:08:35 +00:00
|
|
|
it_behaves_like 'graphql on a read-only GitLab instance'
|
2019-09-20 18:06:35 +00:00
|
|
|
end
|
|
|
|
end
|