Sha256: cd75961f6de86167e30852446511b5fbc4ddf6c6de7ea673e8bf2224ea7a5b40

Contents?: true

Size: 1.08 KB

Versions: 10

Compression:

Stored size: 1.08 KB

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :app_definition, :class => 'ForemanAcd::AppDefinition' do
    sequence(:name) { |n| "app_definition#{n}" }
    sequence(:description) { |n| "description#{n}" }
    hostgroup { FactoryBot.create(:hostgroup, :with_domain, :with_os, :with_environment) }
    parameters { '[{"id":0,"name":"Hostname","description":"","type":"hostname","value":"mysqllinux"},{"id":1,"name":"RootPW","description":"","type":"password","value":"sesam12345"},{"id":2,"name":"ansible_root","description":"","type":"hostparam","value":"/root/ansible"}]' }
  end

  factory :app_instance, :class => 'ForemanAcd::AppInstance' do
    sequence(:name) { |n| "app_instance#{n}" }
    app_definition { FactoryBot.create(:app_definition) }
    sequence(:description) { |n| "description#{n}" }
    parameters { '[{"id":0,"name":"Hostname","description":"","type":"hostname","value":"mysqllinux"},{"id":1,"name":"RootPW","description":"","type":"password","value":"sesam12345"},{"id":2,"name":"ansible_root","description":"","type":"hostparam","value":"/root/ansible"}]' }
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foreman_acd-0.6.0 test/factories/foreman_acd_factories.rb
foreman_acd-0.5.0 test/factories/foreman_acd_factories.rb
foreman_acd-0.4.0 test/factories/foreman_acd_factories.rb
foreman_acd-0.3.0 test/factories/foreman_acd_factories.rb
foreman_acd-0.2.1 test/factories/foreman_acd_factories.rb
foreman_acd-0.0.6 test/factories/foreman_acd_factories.rb
foreman_acd-0.0.5 test/factories/foreman_acd_factories.rb
foreman_acd-0.0.4 test/factories/foreman_acd_factories.rb
foreman_acd-0.0.3 test/factories/foreman_acd_factories.rb
foreman_acd-0.0.2 test/factories/foreman_acd_factories.rb