summaryrefslogtreecommitdiff
path: root/spec/factories/analytics/usage_trends/measurement.rb
blob: ec80174e9679501633c07ae356dff6a954bcf379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# frozen_string_literal: true

FactoryBot.define do
  factory :usage_trends_measurement, class: 'Analytics::UsageTrends::Measurement' do
    recorded_at { Time.now }
    identifier { :projects }
    count { 1_000 }

    trait :project_count do
      identifier { :projects }
    end

    trait :group_count do
      identifier { :groups }
    end

    trait :pipelines_succeeded_count do
      identifier { :pipelines_succeeded }
    end

    trait :pipelines_skipped_count do
      identifier { :pipelines_skipped }
    end
  end
end