Sha256: be75b92fa63ac7aa021f889c1be97e940722b2a10546b8a5b6b5a23e94de882b

Contents?: true

Size: 421 Bytes

Versions: 4

Compression:

Stored size: 421 Bytes

Contents

FactoryBot.define do
  factory :container_resource, :class => ComputeResource do
    sequence(:name) { |n| "compute_resource#{n}" }

    trait :docker do
      provider 'Docker'
      user 'dockeruser'
      password 'dockerpassword'
      email 'container@containerization.com'
      url 'unix:///var/run/docker.falsesock'
    end

    factory :docker_cr, :class => ForemanDocker::Docker, :traits => [:docker]
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
foreman_docker-5.0.0 test/factories/compute_resources.rb
foreman_docker-4.1.1 test/factories/compute_resources.rb
foreman_docker-4.1.0 test/factories/compute_resources.rb
foreman_docker-4.0.0 test/factories/compute_resources.rb