Sha256: 54c0a0829a411559623d3f53d0880b9b69fb1f9f1dbc78d7703d6f5b0fcb1590
Contents?: true
Size: 929 Bytes
Versions: 52
Compression:
Stored size: 929 Bytes
Contents
include ActionDispatch::TestProcess FactoryBot.define do factory :scap_content, :class => ::ForemanOpenscap::ScapContent do |f| f.sequence(:title) { |n| "scap_content_title_#{n}" } f.original_filename { 'fedora ds' } f.scap_file { File.new("#{ForemanOpenscap::Engine.root}/test/files/scap_contents/ssg-fedora-ds.xml", 'rb').read } end factory :scap_content_profile, :class => ::ForemanOpenscap::ScapContentProfile do |f| f.scap_content f.profile_id { 'xccdf_org.test.common_test_profile' } f.title { 'test Profile for testing' } end factory :tailoring_file, :class => ForemanOpenscap::TailoringFile do |f| f.sequence(:name) { |n| "tailoring_file_#{n}" } f.original_filename { 'original tailoring filename' } f.scap_file { File.new("#{ForemanOpenscap::Engine.root}/test/files/tailoring_files/ssg-firefox-ds-tailoring.xml", 'rb').read } f.scap_content_profiles { [] } end end
Version data entries
52 entries across 52 versions & 1 rubygems