summaryrefslogtreecommitdiff
path: root/spec/factories/instance_statistics/measurement.rb
blob: f9398cd3061f3bb2b809a63d415710f6d1c4557a (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 :instance_statistics_measurement, class: 'Analytics::InstanceStatistics::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