Sha256: 6e2d45cbed18600536826bacc3e4af2aed2426a4643a856c88d736da6c2bfe53

Contents?: true

Size: 323 Bytes

Versions: 51

Compression:

Stored size: 323 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] }
    locations { [location_one] }
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
foreman_discovery-25.1.0 test/factories/discovery_rule_related.rb
foreman_discovery-25.0.1 test/factories/discovery_rule_related.rb
foreman_discovery-25.0.0 test/factories/discovery_rule_related.rb
foreman_discovery-24.0.2 test/factories/discovery_rule_related.rb
foreman_discovery-23.0.2 test/factories/discovery_rule_related.rb
foreman_discovery-24.0.1 test/factories/discovery_rule_related.rb
foreman_discovery-24.0.0 test/factories/discovery_rule_related.rb
foreman_discovery-23.0.1 test/factories/discovery_rule_related.rb
foreman_discovery-23.0.0 test/factories/discovery_rule_related.rb
foreman_discovery-22.0.4 test/factories/discovery_rule_related.rb
foreman_discovery-21.0.5 test/factories/discovery_rule_related.rb
foreman_discovery-22.0.2 test/factories/discovery_rule_related.rb
foreman_discovery-21.0.4 test/factories/discovery_rule_related.rb
foreman_discovery-21.0.3 test/factories/discovery_rule_related.rb
foreman_discovery-21.0.2 test/factories/discovery_rule_related.rb
foreman_discovery-19.0.5 test/factories/discovery_rule_related.rb
foreman_discovery-19.0.4 test/factories/discovery_rule_related.rb
foreman_discovery-21.0.1 test/factories/discovery_rule_related.rb
foreman_discovery-19.0.3 test/factories/discovery_rule_related.rb
foreman_discovery-21.0.0 test/factories/discovery_rule_related.rb