summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/requests/clusters/certificate_based_clusters_feature_flag_shared_examples.rb
blob: 24d90bde8145b2a82c8fcb3122edd17f45f7b56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

RSpec.shared_examples ':certificate_based_clusters feature flag API responses' do
  context 'feature flag is disabled' do
    before do
      stub_feature_flags(certificate_based_clusters: false)
    end

    it 'responds with :not_found' do
      subject

      expect(response).to have_gitlab_http_status(:not_found)
    end
  end
end