2019-12-26 22:10:19 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :detailed_error_tracking_error, class: Gitlab::ErrorTracking::DetailedError do
|
2020-01-01 13:55:28 +05:30
|
|
|
id { '1' }
|
2019-12-26 22:10:19 +05:30
|
|
|
title { 'title' }
|
|
|
|
type { 'error' }
|
|
|
|
user_count { 1 }
|
|
|
|
count { 2 }
|
2020-01-01 13:55:28 +05:30
|
|
|
first_seen { Time.now.iso8601 }
|
|
|
|
last_seen { Time.now.iso8601 }
|
2019-12-26 22:10:19 +05:30
|
|
|
message { 'message' }
|
|
|
|
culprit { 'culprit' }
|
|
|
|
external_url { 'http://example.com/id' }
|
|
|
|
external_base_url { 'http://example.com' }
|
|
|
|
project_id { 'project1' }
|
|
|
|
project_name { 'project name' }
|
|
|
|
project_slug { 'project_name' }
|
|
|
|
short_id { 'ID' }
|
|
|
|
status { 'unresolved' }
|
2020-01-01 13:55:28 +05:30
|
|
|
frequency do
|
|
|
|
[
|
|
|
|
[Time.now.to_i, 10]
|
|
|
|
]
|
|
|
|
end
|
|
|
|
gitlab_issue { 'http://gitlab.example.com/issues/1' }
|
2019-12-26 22:10:19 +05:30
|
|
|
first_release_last_commit { '68c914da9' }
|
|
|
|
last_release_last_commit { '9ad419c86' }
|
|
|
|
first_release_short_version { 'abc123' }
|
|
|
|
last_release_short_version { 'abc123' }
|
|
|
|
|
|
|
|
skip_create
|
|
|
|
end
|
|
|
|
end
|