2020-09-02 05:10:23 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :atlassian_identity, class: 'Atlassian::Identity' do
|
|
|
|
extern_uid { generate(:username) }
|
2021-03-16 11:11:17 -04:00
|
|
|
user { association(:user) }
|
2020-09-02 05:10:23 -04:00
|
|
|
expires_at { 2.weeks.from_now }
|
|
|
|
token { SecureRandom.alphanumeric(1254) }
|
|
|
|
refresh_token { SecureRandom.alphanumeric(45) }
|
|
|
|
end
|
|
|
|
end
|