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

Version Path
foreman_openscap-10.1.0 test/factories/scap_content_related.rb
foreman_openscap-10.0.3 test/factories/scap_content_related.rb
foreman_openscap-10.0.2 test/factories/scap_content_related.rb
foreman_openscap-10.0.1 test/factories/scap_content_related.rb
foreman_openscap-10.0.0 test/factories/scap_content_related.rb
foreman_openscap-9.0.4 test/factories/scap_content_related.rb
foreman_openscap-9.0.3 test/factories/scap_content_related.rb
foreman_openscap-9.0.2 test/factories/scap_content_related.rb
foreman_openscap-9.0.1 test/factories/scap_content_related.rb
foreman_openscap-9.0.0 test/factories/scap_content_related.rb
foreman_openscap-8.0.0 test/factories/scap_content_related.rb
foreman_openscap-7.1.1 test/factories/scap_content_related.rb
foreman_openscap-7.1.0 test/factories/scap_content_related.rb
foreman_openscap-7.0.0 test/factories/scap_content_related.rb
foreman_openscap-6.0.0 test/factories/scap_content_related.rb
foreman_openscap-5.2.3 test/factories/scap_content_related.rb
foreman_openscap-5.2.2 test/factories/scap_content_related.rb
foreman_openscap-5.1.1 test/factories/scap_content_related.rb
foreman_openscap-5.2.1 test/factories/scap_content_related.rb
foreman_openscap-5.2.0 test/factories/scap_content_related.rb