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