Sha256: 62d5b72481b1a4871a4305f7f636379c5f28cec7e06022aba95af897fb7572e4
Contents?: true
Size: 1.09 KB
Versions: 2
Compression:
Stored size: 1.09 KB
Contents
require 'test_helper' class ActionController::TestCase def setup_bootdisk setup_routes setup_settings setup_templates end def setup_routes @routes = ForemanBootdisk::Engine.routes end def setup_settings Setting::Bootdisk.load_defaults end def setup_templates load File.join(File.dirname(__FILE__), '..', 'db', 'seeds.d', '50-bootdisk_templates.rb') end def setup_org_loc disable_orchestration request.env["HTTP_REFERER"] = "/history" @org, @loc = FactoryGirl.create(:organization), FactoryGirl.create(:location) end def setup_subnet @subnet = FactoryGirl.create(:subnet_ipv4, :tftp, :gateway => '10.0.1.254', :dns_primary => '8.8.8.8', :organizations => [@org], :locations => [@loc]) end def setup_subnet_no_tftp @subnet = FactoryGirl.create(:subnet_ipv4, :gateway => '10.0.1.254', :dns_primary => '8.8.8.8', :organizations => [@org], :locations => [@loc]) end def setup_host @host = FactoryGirl.create(:host, :managed, :subnet => @subnet, :ip => @subnet.network.sub(/0$/, '4'), :organization => @org, :location => @loc) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
foreman_bootdisk-8.0.2 | test/test_plugin_helper.rb |
foreman_bootdisk-8.0.1 | test/test_plugin_helper.rb |