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