debian-mirror-gitlab/spec/requests/api/graphql/read_only_spec.rb

14 lines
296 B
Ruby
Raw Normal View History

2019-12-21 20:55:43 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe 'Requests on a read-only node' 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