2019-01-09 16:04:27 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2020-01-09 13:07:52 -05:00
|
|
|
factory :error_tracking_error, class: 'Gitlab::ErrorTracking::Error' do
|
2020-01-29 07:09:08 -05:00
|
|
|
id { '1' }
|
2019-10-01 20:06:26 -04:00
|
|
|
title { 'title' }
|
|
|
|
type { 'error' }
|
|
|
|
user_count { 1 }
|
|
|
|
count { 2 }
|
2020-01-29 07:09:08 -05:00
|
|
|
first_seen { Time.now.iso8601 }
|
|
|
|
last_seen { Time.now.iso8601 }
|
2019-10-01 20:06:26 -04:00
|
|
|
message { 'message' }
|
|
|
|
culprit { 'culprit' }
|
|
|
|
external_url { 'http://example.com/id' }
|
|
|
|
project_id { 'project1' }
|
|
|
|
project_name { 'project name' }
|
|
|
|
project_slug { 'project_name' }
|
|
|
|
short_id { 'ID' }
|
|
|
|
status { 'unresolved' }
|
2020-01-29 07:09:08 -05:00
|
|
|
frequency do
|
|
|
|
[
|
|
|
|
[Time.now.to_i, 10]
|
|
|
|
]
|
|
|
|
end
|
2019-01-09 16:04:27 -05:00
|
|
|
|
|
|
|
skip_create
|
|
|
|
end
|
|
|
|
end
|