summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorLuke Duncalfe <lduncalfe@gitlab.com>2019-07-24 11:23:51 +0000
committerJames Lopez <james@gitlab.com>2019-07-24 11:23:51 +0000
commitd18ee3faad34097c14d2f1ee9c4a1bf7b00b202a (patch)
tree1b97dbef9e1d53eba6208831f44ec8119c05bc07 /spec/factories
parent0a2bbc9267e5aca220cda17f13e6f62bae7f1f1b (diff)
downloadgitlab-ce-d18ee3faad34097c14d2f1ee9c4a1bf7b00b202a.tar.gz
LFS export records repository_type data
A project can have the same `LfsObject` linked with up to three `LfsObjectsProject` records. Each of these records would be for a different repository, recorded in the `repository_type` property. The different repositories at time of writing are "project", "wiki", and "design". See https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/13894 This change exports the list of `repository_type`s as a JSON mapping of oid => repository_types, which are imported to recreate the correct `LfsObjectsProject` records. https://gitlab.com/gitlab-org/gitlab-ee/issues/11090
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/lfs_objects.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/factories/lfs_objects.rb b/spec/factories/lfs_objects.rb
index c909471bb55..08ac7fb69e7 100644
--- a/spec/factories/lfs_objects.rb
+++ b/spec/factories/lfs_objects.rb
@@ -14,6 +14,7 @@ FactoryBot.define do
# objects, so the test needs to decide which (if any) object gets it
trait :correct_oid do
oid 'b804383982bb89b00e828e3f44c038cc991d3d1768009fc39ba8e2c081b9fb75'
+ size 1062
end
trait :object_storage do