debian-mirror-gitlab/spec/factories/gitlab/database/reindexing/reindex_action.rb

15 lines
482 B
Ruby
Raw Normal View History

2021-02-22 17:27:13 +05:30
# 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