2020-04-22 15:09:27 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
FactoryBot.define do
|
|
|
|
factory :plan_limits do
|
|
|
|
plan
|
|
|
|
|
2021-09-10 21:11:04 +00:00
|
|
|
dast_profile_schedules { 50 }
|
|
|
|
|
2022-06-10 12:09:36 +00:00
|
|
|
Plan.all_plans.each do |plan|
|
|
|
|
trait :"#{plan}_plan" do
|
|
|
|
plan factory: :"#{plan}_plan"
|
|
|
|
end
|
2020-04-22 15:09:27 +00:00
|
|
|
end
|
2020-09-18 09:09:32 +00:00
|
|
|
|
|
|
|
trait :with_package_file_sizes do
|
|
|
|
conan_max_file_size { 100 }
|
2021-12-01 15:13:55 +00:00
|
|
|
helm_max_file_size { 100 }
|
2020-09-18 09:09:32 +00:00
|
|
|
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-04-22 15:09:27 +00:00
|
|
|
end
|
|
|
|
end
|