Commit f6fd12af authored by David Fernandez's avatar David Fernandez

Add nuget package files to packages seed file

parent fe5227b3
......@@ -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