Revision f87b1a25
Added by Leos Stejskal about 2 months ago
test/factories/operatingsystem.rb | ||
---|---|---|
ptables { [FactoryBot.build(:ptable, name: 'ptable')] }
|
||
end
|
||
|
||
factory :for_snapshots_rocky8, class: Redhat do
|
||
name { 'Rocky' }
|
||
major { '8' }
|
||
minor { '0' }
|
||
type { 'Redhat' }
|
||
title { 'Rocky Linux 8.0' }
|
||
architectures { [FactoryBot.build(:architecture, :for_snapshots_x86_64)] }
|
||
media { [FactoryBot.build(:rhel_for_snapshots)] }
|
||
ptables { [FactoryBot.build(:ptable, name: 'ptable')] }
|
||
end
|
||
|
||
factory :for_snapshots_rocky9, class: Redhat do
|
||
name { 'Rocky' }
|
||
major { '9' }
|
||
minor { '0' }
|
||
type { 'Redhat' }
|
||
title { 'Rocky Linux 9.0' }
|
||
architectures { [FactoryBot.build(:architecture, :for_snapshots_x86_64)] }
|
||
media { [FactoryBot.build(:rhel_for_snapshots)] }
|
||
ptables { [FactoryBot.build(:ptable, name: 'ptable')] }
|
||
end
|
||
|
||
factory :altlinux, class: Altlinux do
|
||
sequence(:name) { 'Altlinux' }
|
||
major { '8' }
|
Also available in: Unified diff
Fixes #37337 - Fix snapshot task and add Rocky 8 & 9