2022-01-13 16:14:07 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :ci_secure_file, class: 'Ci::SecureFile' do
|
2022-05-17 11:09:01 -04:00
|
|
|
sequence(:name) { |n| "file#{n}" }
|
2022-01-13 16:14:07 -05:00
|
|
|
file { fixture_file_upload('spec/fixtures/ci_secure_files/upload-keystore.jks', 'application/octet-stream') }
|
|
|
|
checksum { 'foo1234' }
|
|
|
|
project
|
2022-07-25 14:10:00 -04:00
|
|
|
|
|
|
|
trait :remote_store do
|
|
|
|
after(:create) do |ci_secure_file|
|
|
|
|
ci_secure_file.update!(file_store: ObjectStorage::Store::REMOTE)
|
|
|
|
end
|
|
|
|
end
|
2022-01-13 16:14:07 -05:00
|
|
|
end
|
|
|
|
end
|