Sha256: d71eb78ecf0203529c404d5d4ee7145ea7796fee3b0cecbd430824a92eae2330

Contents?: true

Size: 469 Bytes

Versions: 6

Compression:

Stored size: 469 Bytes

Contents

FactoryBot.define do
  factory :policy, :class => ::ForemanOpenscap::Policy do
    sequence(:name) { |n| "policy#{n}" }
    period 'weekly'
    weekday 'monday'
    scap_content { FactoryBot.create(:scap_content) }
    scap_content_profile { FactoryBot.create(:scap_content_profile, :scap_content => scap_content) }
    tailoring_file nil
    tailoring_file_profile nil
    day_of_month nil
    cron_line nil
    hosts []
    assets []
    deploy_by 'manual'
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman_openscap-1.0.1 test/factories/policy_factory.rb
foreman_openscap-1.0.0 test/factories/policy_factory.rb
foreman_openscap-0.12.3 test/factories/policy_factory.rb
foreman_openscap-0.12.2 test/factories/policy_factory.rb
foreman_openscap-0.12.1 test/factories/policy_factory.rb
foreman_openscap-0.12.0 test/factories/policy_factory.rb