debian-mirror-gitlab/spec/factories/analytics/usage_trends/measurement.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
535 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# frozen_string_literal: true
FactoryBot.define do
2021-04-17 20:07:23 +05:30
factory :usage_trends_measurement, class: 'Analytics::UsageTrends::Measurement' do
2020-11-24 15:15:51 +05:30
recorded_at { Time.now }
identifier { :projects }
count { 1_000 }
trait :project_count do
identifier { :projects }
end
trait :group_count do
identifier { :groups }
end
2021-01-03 14:25:43 +05:30
trait :pipelines_succeeded_count do
identifier { :pipelines_succeeded }
end
trait :pipelines_skipped_count do
identifier { :pipelines_skipped }
end
2020-11-24 15:15:51 +05:30
end
end