debian-mirror-gitlab/spec/factories/project_error_tracking_settings.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
695 B
Ruby
Raw Normal View History

2019-02-15 15:39:39 +05:30
# frozen_string_literal: true
FactoryBot.define do
2020-03-13 15:44:24 +05:30
factory :project_error_tracking_setting, class: 'ErrorTracking::ProjectErrorTrackingSetting' do
2019-02-15 15:39:39 +05:30
project
2020-03-13 15:44:24 +05:30
api_url { 'https://sentrytest.gitlab.com/api/0/projects/sentry-org/sentry-project' }
2019-12-21 20:55:43 +05:30
enabled { true }
token { 'access_token_123' }
project_name { 'Sentry Project' }
organization_name { 'Sentry Org' }
2021-11-18 22:05:49 +05:30
integrated { false }
2022-07-01 11:34:44 +05:30
sentry_project_id { 10 }
2020-03-13 15:44:24 +05:30
trait :disabled do
enabled { false }
end
2021-10-27 15:23:28 +05:30
trait :integrated do
2023-05-27 22:25:52 +05:30
api_url { nil }
2021-10-27 15:23:28 +05:30
integrated { true }
2023-05-27 22:25:52 +05:30
token { nil }
project_name { nil }
organization_name { nil }
sentry_project_id { nil }
2021-10-27 15:23:28 +05:30
end
2019-02-15 15:39:39 +05:30
end
end