debian-mirror-gitlab/spec/factories/gitlab/database/reindexing/reindex_action.rb
2021-02-22 17:27:13 +05:30

14 lines
482 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :reindex_action, class: 'Gitlab::Database::Reindexing::ReindexAction' do
association :index, factory: :postgres_index
action_start { Time.now - 10.minutes }
action_end { Time.now - 5.minutes }
ondisk_size_bytes_start { 2.megabytes }
ondisk_size_bytes_end { 1.megabytes }
state { Gitlab::Database::Reindexing::ReindexAction.states[:finished] }
index_identifier { index.identifier }
end
end