2019-10-12 21:52:04 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
FactoryBot.define do
|
2017-08-17 22:00:37 +05:30
|
|
|
sequence(:username) { |n| "user#{n}" }
|
2022-01-26 12:08:38 +05:30
|
|
|
sequence(:name) { |n| "Sidney Jones#{n}" }
|
2017-08-17 22:00:37 +05:30
|
|
|
sequence(:email) { |n| "user#{n}@example.org" }
|
|
|
|
sequence(:email_alias) { |n| "user.alias#{n}@example.org" }
|
|
|
|
sequence(:title) { |n| "My title #{n}" }
|
|
|
|
sequence(:filename) { |n| "filename-#{n}.rb" }
|
2019-09-04 21:01:54 +05:30
|
|
|
sequence(:url) { |n| "http://example#{n}.test" }
|
2017-08-17 22:00:37 +05:30
|
|
|
sequence(:label_title) { |n| "label#{n}" }
|
|
|
|
sequence(:branch) { |n| "my-branch-#{n}" }
|
|
|
|
sequence(:past_time) { |n| 4.hours.ago + (2 * n).seconds }
|
2020-04-22 19:07:51 +05:30
|
|
|
sequence(:iid)
|
2020-05-24 23:13:21 +05:30
|
|
|
sequence(:sha) { |n| Digest::SHA1.hexdigest("commit-like-#{n}") }
|
2021-02-22 17:27:13 +05:30
|
|
|
sequence(:oid) { |n| Digest::SHA2.hexdigest("oid-like-#{n}") }
|
|
|
|
sequence(:variable) { |n| "var#{n}" }
|
2021-03-11 19:13:27 +05:30
|
|
|
sequence(:draft_title) { |n| "Draft: #{n}" }
|
2021-02-22 17:27:13 +05:30
|
|
|
sequence(:jira_title) { |n| "[PROJ-#{n}]: fix bug" }
|
2022-05-07 20:08:51 +05:30
|
|
|
sequence(:jira_description) { |n| "This is a description\n here is the description\n Related to: PROJ-#{n}" }
|
2021-02-22 17:27:13 +05:30
|
|
|
sequence(:jira_branch) { |n| "feature/PROJ-#{n}" }
|
2021-04-29 21:17:54 +05:30
|
|
|
sequence(:job_name) { |n| "job #{n}" }
|
2021-10-27 15:23:28 +05:30
|
|
|
sequence(:work_item_type_name) { |n| "bug#{n}" }
|
2022-01-26 12:08:38 +05:30
|
|
|
sequence(:short_text) { |n| "someText#{n}" }
|
2022-08-13 15:12:31 +05:30
|
|
|
sequence(:token) { SecureRandom.hex(10) }
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|