Commit 02b721b2 authored by Thong Kuah's avatar Thong Kuah

Merge branch '10io-improve-packages-seed-file' into 'master'

Add nuget package files to packages seed file

See merge request gitlab-org/gitlab!23975
parents 8b474fec f6fd12af
......@@ -107,6 +107,17 @@ class Gitlab::Seeder::Packages
# when using ::Packages::Nuget::CreatePackageService, packages have a fixed name and a fixed version.
pkg.update!(name: name, version: version)
filename = 'package.nupkg'
with_cloned_fixture_file('nuget', filename) do |filepath|
file_params = {
file: UploadedFile.new(filepath, filename: filename),
file_name: filename,
file_sha1: '1234567890',
size: 100.kilobytes
}
::Packages::CreatePackageFileService.new(pkg, file_params).execute
end
print '.'
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment