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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
325 B
Ruby
Raw Permalink Normal View History

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