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

22 lines
703 B
Ruby
Raw Normal View History

2019-09-04 21:01:54 +05:30
# frozen_string_literal: true
2021-03-11 19:13:27 +05:30
# These factories should not be called directly unless we are testing a _tracker_data model.
# The factories are used when creating integrations.
2019-09-04 21:01:54 +05:30
FactoryBot.define do
2021-09-04 01:27:46 +05:30
factory :jira_tracker_data, class: 'Integrations::JiraTrackerData' do
2021-09-30 23:02:18 +05:30
integration factory: :jira_integration
2019-09-04 21:01:54 +05:30
end
2021-09-04 01:27:46 +05:30
factory :issue_tracker_data, class: 'Integrations::IssueTrackerData' do
2021-06-08 01:23:25 +05:30
integration
2019-09-04 21:01:54 +05:30
end
2020-04-22 19:07:51 +05:30
2021-09-04 01:27:46 +05:30
factory :open_project_tracker_data, class: 'Integrations::OpenProjectTrackerData' do
2021-06-08 01:23:25 +05:30
integration factory: :open_project_service
2020-04-22 19:07:51 +05:30
url { 'http://openproject.example.com'}
token { 'supersecret' }
project_identifier_code { 'PRJ-1' }
closed_status_id { '15' }
end
2019-09-04 21:01:54 +05:30
end