Sha256: 0db1853bc6ec7c3bc3be021a0f297146d67cd56bd75f4e195dcf18f7c1796aa3

Contents?: true

Size: 679 Bytes

Versions: 14

Compression:

Stored size: 679 Bytes

Contents

FactoryBot.define do
  factory :virt_who_config, :class => ::ForemanVirtWhoConfigure::Config do
    sequence(:name) { |n| "config #{n}" }
    organization
    interval 120
    hypervisor_id 'hostname'
    hypervisor_type 'esx'
    hypervisor_server 'vmware.example.com'
    hypervisor_username 'root'
    hypervisor_password 'changeme'
    satellite_url 'foreman.example.com'
    listing_mode ForemanVirtWhoConfigure::Config::UNLIMITED
  end

  trait :out_of_date do
    last_report_at (1.minute.ago - 120.minutes).utc
    out_of_date_at (1.minute.ago).utc
  end

  trait :ok do
    last_report_at (1.minute.ago).utc
    out_of_date_at (1.minute.ago + 120.minutes).utc
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
foreman_virt_who_configure-0.5.0 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.4.5 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.4.4 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.4.3 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.4.2 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.4.1 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.3.3 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.4.0 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.3.2 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.3.1 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.3.0 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.2.2 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.2.1 test/factories/foreman_virt_who_configure_factories.rb
foreman_virt_who_configure-0.2.0 test/factories/foreman_virt_who_configure_factories.rb