Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cert_based_clusters_ff_metric_spec.rb « instrumentations « metrics « usage « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 09cc6ae71d451c6f006d36bb1cd703a461ed553b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe Gitlab::Usage::Metrics::Instrumentations::CertBasedClustersFfMetric do
  context 'with FF enabled' do
    it_behaves_like 'a correct instrumented metric value', { time_frame: '7d', data_source: 'database' } do
      let(:expected_value) { true }
    end
  end

  context 'with FF disabled' do
    before do
      stub_feature_flags(certificate_based_clusters: false)
    end

    it_behaves_like 'a correct instrumented metric value', { time_frame: '7d', data_source: 'database' } do
      let(:expected_value) { false }
    end
  end
end