blob: c9bc101374fbd809e59400f7c6a6a05ddca509eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Usage::Metrics::Instrumentations::SnowplowConfiguredToGitlabCollectorMetric do
using RSpec::Parameterized::TableSyntax
context 'for collector_hostname option' do
where(:collector_hostname, :expected_value) do
'snowplow.trx.gitlab.net' | true
'foo.bar.something.net' | false
end
with_them do
before do
stub_application_setting(snowplow_collector_hostname: collector_hostname)
end
it_behaves_like 'a correct instrumented metric value', { time_frame: 'none' }
end
end
end
|