Sha256: df27dabd48e1d7167166bcc63c8701dddefb87c18b8a02348acb44aed416e820

Contents?: true

Size: 562 Bytes

Versions: 7

Compression:

Stored size: 562 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :proxmox_resource, :class => ComputeResource do
    sequence(:name) { |n| "compute_resource_proxmox#{n}" }
    organizations { [Organization.find_by(name: 'Organization 1')] }
    locations { [Location.find_by(name: 'Location 1')] }

    trait :proxmox do
      provider { 'Proxmox' }
      user { 'root@pam' }
      password { 'proxmox01' }
      url { 'https://192.168.56.101:8006/api2/json' }
    end

    factory :proxmox_cr, :class => ForemanFogProxmox::Proxmox, :traits => [:proxmox]
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
foreman_snapshot_management-4.0.0 test/factories/proxmox_factory.rb
foreman_snapshot_management-3.0.1 test/factories/proxmox_factory.rb
foreman_snapshot_management-3.0.0 test/factories/proxmox_factory.rb
foreman_snapshot_management-2.0.3 test/factories/proxmox_factory.rb
foreman_snapshot_management-2.0.2 test/factories/proxmox_factory.rb
foreman_snapshot_management-2.0.1 test/factories/proxmox_factory.rb
foreman_snapshot_management-2.0.0 test/factories/proxmox_factory.rb