Sha256: 7e5c77b190a20495322fb78ee811625b3584682103c5bf9697ae58c7ccf920b2

Contents?: true

Size: 874 Bytes

Versions: 22

Compression:

Stored size: 874 Bytes

Contents

include ActionDispatch::TestProcess

FactoryGirl.define do
  factory :scap_content, :class => ::ForemanOpenscap::ScapContent do |f|
    f.title 'fedora'
    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

22 entries across 22 versions & 1 rubygems

Version Path
foreman_openscap-0.7.13 test/factories/scap_content_related.rb
foreman_openscap-0.7.12 test/factories/scap_content_related.rb
foreman_openscap-0.7.11 test/factories/scap_content_related.rb
foreman_openscap-0.7.10 test/factories/scap_content_related.rb
foreman_openscap-0.8.3 test/factories/scap_content_related.rb
foreman_openscap-0.7.9 test/factories/scap_content_related.rb
foreman_openscap-0.7.8 test/factories/scap_content_related.rb
foreman_openscap-0.7.7 test/factories/scap_content_related.rb
foreman_openscap-0.8.2 test/factories/scap_content_related.rb
foreman_openscap-0.7.6 test/factories/scap_content_related.rb
foreman_openscap-0.8.1 test/factories/scap_content_related.rb
foreman_openscap-0.7.5 test/factories/scap_content_related.rb
foreman_openscap-0.8.0 test/factories/scap_content_related.rb
foreman_openscap-0.7.4 test/factories/scap_content_related.rb
foreman_openscap-0.7.3 test/factories/scap_content_related.rb
foreman_openscap-0.7.2 test/factories/scap_content_related.rb
foreman_openscap-0.7.1 test/factories/scap_content_related.rb
foreman_openscap-0.6.7 test/factories/scap_content_related.rb
foreman_openscap-0.7.0 test/factories/scap_content_related.rb
foreman_openscap-0.6.6 test/factories/scap_content_related.rb