2019-01-07 12:55:21 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
2020-01-09 13:07:52 -05:00
|
|
|
factory :project_error_tracking_setting, class: 'ErrorTracking::ProjectErrorTrackingSetting' do
|
2019-01-07 12:55:21 -05:00
|
|
|
project
|
2020-01-23 07:08:38 -05:00
|
|
|
api_url { 'https://sentrytest.gitlab.com/api/0/projects/sentry-org/sentry-project' }
|
2019-10-01 20:06:26 -04:00
|
|
|
enabled { true }
|
|
|
|
token { 'access_token_123' }
|
|
|
|
project_name { 'Sentry Project' }
|
|
|
|
organization_name { 'Sentry Org' }
|
2020-02-05 13:09:06 -05:00
|
|
|
|
|
|
|
trait :disabled do
|
|
|
|
enabled { false }
|
|
|
|
end
|
2021-08-16 17:11:02 -04:00
|
|
|
|
|
|
|
trait :integrated do
|
|
|
|
integrated { true }
|
|
|
|
end
|
2019-01-07 12:55:21 -05:00
|
|
|
end
|
|
|
|
end
|