diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2019-08-25 00:16:44 +0300 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2019-08-25 00:17:16 +0300 |
commit | b70aabf9b394448ab1056950a3547e08531ea01e (patch) | |
tree | e0d879517fef6b47b386fdae58022647928e546d /spec/factories | |
parent | 8112fb37544557b3f94c0a558175d5da99ef9829 (diff) |
Backport expired job artifact trait
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/job_artifacts.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/factories/ci/job_artifacts.rb b/spec/factories/ci/job_artifacts.rb index 2d68a8e9fe3..6f553cadfa3 100644 --- a/spec/factories/ci/job_artifacts.rb +++ b/spec/factories/ci/job_artifacts.rb @@ -8,6 +8,10 @@ FactoryBot.define do file_type :archive file_format :zip + trait :expired do + expire_at { Date.yesterday } + end + trait :remote_store do file_store JobArtifactUploader::Store::REMOTE end |