Project

General

Profile

Download (422 Bytes) Statistics
| Branch: | Tag: | Revision:

foreman-docker / test / factories / compute_resources.rb @ ef3feba4

1
FactoryGirl.define do
2
  factory :container_resource, :class => ComputeResource do
3
    sequence(:name) { |n| "compute_resource#{n}" }
4

    
5
    trait :docker do
6
      provider 'Docker'
7
      user 'dockeruser'
8
      password 'dockerpassword'
9
      email 'container@containerization.com'
10
      url 'unix:///var/run/docker.falsesock'
11
    end
12

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