2019-12-21 20:55:43 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2023-03-04 22:38:38 +05:30
|
|
|
RSpec.describe 'Requests on a read-only node', feature_category: :database do
|
2021-01-29 00:20:46 +05:30
|
|
|
context 'when db is read-only' do
|
2019-12-21 20:55:43 +05:30
|
|
|
before do
|
2021-01-29 00:20:46 +05:30
|
|
|
allow(Gitlab::Database).to receive(:read_only?) { true }
|
2019-12-21 20:55:43 +05:30
|
|
|
end
|
|
|
|
|
2021-01-29 00:20:46 +05:30
|
|
|
it_behaves_like 'graphql on a read-only GitLab instance'
|
2019-12-21 20:55:43 +05:30
|
|
|
end
|
|
|
|
end
|