Sha256: 0324cd5febfb831d9db5bdb6001dafe99b615b80b3f10f01fd0566bfccea80d9

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

FactoryBot.define do
  factory :discovery_rule do
    sequence(:name) { |n| "rule#{n}" }
    sequence(:priority) { |n| n }
    search { "facts.fact1 == 'value1'" }
    hostname { "" }
    hostgroup
    max_count { 0 }
    enabled { true }
    organizations { [organization_one] } if SETTINGS[:organizations_enabled]
    locations { [location_one] } if SETTINGS[:locations_enabled]
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_discovery-14.0.1 test/factories/discovery_rule_related.rb
foreman_discovery-14.0.0 test/factories/discovery_rule_related.rb