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

22 lines
673 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-11-11 11:23:49 +05:30
factory :zentao_tracker_data, class: 'Integrations::ZentaoTrackerData' do
integration factory: :zentao_integration
url { 'https://jihudemo.zentao.net' }
api_url { '' }
api_token { 'ZENTAO_TOKEN' }
zentao_product_xid { '3' }
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
end