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

service_ping_payload_without_restricted_metrics_shared_examples.rb « service_ping « services « shared_examples « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e05239a9a36e7fb383c9eedd796d2d661cb0a2cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

RSpec.shared_examples 'service ping payload without restricted metrics' do
  specify do
    allow(ApplicationRecord.database).to receive(:flavor).and_return(nil)

    aggregate_failures do
      restricted_metrics.each do |metric|
        is_expected.not_to have_usage_metric metric['key_path']
      end
    end
  end
end