Sha256: 3cab842f32f0187866391c0b20eb892d405c2515c0085cc19e23b76171ded8de
Contents?: true
Size: 723 Bytes
Versions: 6
Compression:
Stored size: 723 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
6 entries across 6 versions & 1 rubygems