debian-mirror-gitlab/spec/factories/plan_limits.rb

26 lines
546 B
Ruby
Raw Normal View History

2020-05-24 23:13:21 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :plan_limits do
plan
2021-11-11 11:23:49 +05:30
dast_profile_schedules { 50 }
2022-07-23 23:45:48 +05:30
Plan.all_plans.each do |plan|
trait :"#{plan}_plan" do
plan factory: :"#{plan}_plan"
end
2020-05-24 23:13:21 +05:30
end
2020-11-24 15:15:51 +05:30
trait :with_package_file_sizes do
conan_max_file_size { 100 }
2022-01-26 12:08:38 +05:30
helm_max_file_size { 100 }
2020-11-24 15:15:51 +05:30
maven_max_file_size { 100 }
npm_max_file_size { 100 }
nuget_max_file_size { 100 }
pypi_max_file_size { 100 }
generic_packages_max_file_size { 100 }
end
2020-05-24 23:13:21 +05:30
end
end