Skip to content
Snippets Groups Projects

Add specs ensuring all metric definition key paths are present

All threads resolved!
1 file
+ 6
6
Compare changes
  • Side-by-side
  • Inline
@@ -12,19 +12,18 @@
include UsageDataHelpers
IGNORED_USAGE_PING_KEY_PATTERNS = %w(
geo_node_usage
license_add_ons
testing_total_unique_counts
topology
user_auth_by_provider.auth0
user_auth_by_provider.authentiq
user_auth_by_provider.cas3
user_auth_by_provider.facebook
user_auth_by_provider.gitlab
user_auth_by_provider.jwt
user_auth_by_provider
).freeze
IGNORED_METRIC_FILES_KEY_PATTERNS = %w(
geo_node_usage
mock_ci
mock_monitoring
user_auth_by_provider
).freeze
let(:usage_ping) { Gitlab::UsageData.uncached_data }
@@ -57,6 +56,7 @@ def parse_usage_ping_keys(object, key_path = [])
allow(ActiveRecord::Base.connection).to receive(:transaction_open?).and_return(false)
stub_licensed_features(requirements: true)
stub_prometheus_queries
allow(Gitlab::Geo).to receive(:enabled?) { true }
end
it 'is included in the Usage Ping hash structure' do
Loading