debian-mirror-gitlab/spec/factories/error_tracking/error.rb

29 lines
637 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
FactoryBot.define do
2020-03-09 13:42:32 +05:30
factory :error_tracking_error, class: 'Gitlab::ErrorTracking::Error' do
id { '1' }
2019-12-21 20:55:43 +05:30
title { 'title' }
type { 'error' }
user_count { 1 }
count { 2 }
2020-03-09 13:42:32 +05:30
first_seen { Time.now.iso8601 }
last_seen { Time.now.iso8601 }
2019-12-21 20:55:43 +05:30
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-03-09 13:42:32 +05:30
frequency do
[
[Time.now.to_i, 10]
]
end
2019-02-15 15:39:39 +05:30
skip_create
end
end