Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-10-01 09:09:59 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-10-01 09:09:59 +0300
commita7e81add72ecfbbf888ec4f73debdc2647b059de (patch)
tree3139b36451667bdd07181ef35044bd9903424fb1 /spec/factories/packages
parent4ed4dc08a806773e5dc326fc0c18bda6f6ea7af7 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/packages')
-rw-r--r--spec/factories/packages/package_file.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/packages/package_file.rb b/spec/factories/packages/package_file.rb
index da35f246ea0..bcca48fb086 100644
--- a/spec/factories/packages/package_file.rb
+++ b/spec/factories/packages/package_file.rb
@@ -140,6 +140,14 @@ FactoryBot.define do
size { 1149.bytes }
end
+ trait(:generic) do
+ package
+ file_fixture { 'spec/fixtures/packages/generic/myfile.tar.gz' }
+ file_name { "#{package.name}.tar.gz" }
+ file_sha256 { '440e5e148a25331bbd7991575f7d54933c0ebf6cc735a18ee5066ac1381bb590' }
+ size { 1149.bytes }
+ end
+
trait(:object_storage) do
file_store { Packages::PackageFileUploader::Store::REMOTE }
end