vaguerent/test/unit/templates/guests/suse/network_dhcp_test.rb
Duncan Mac-Vicar P a21d5be705 SUSE-flavored systems uses STARTMODE and not ONBOOT
As described in /etc/sysconfig/network/ifcfg.template

Static template was already using the right one, but the dhcp configuration seems
to be copied from a Fedora/Redhat template.
This fixes the issue that the interface does not come up after reboot.
2015-11-08 16:09:04 +01:00

22 lines
567 B
Ruby

require_relative "../../../base"
require "vagrant/util/template_renderer"
describe "templates/guests/suse/network_dhcp" do
let(:template) { "guests/suse/network_dhcp" }
it "renders the template" do
result = Vagrant::Util::TemplateRenderer.render(template, options: {
interface: "en0",
})
expect(result).to eq <<-EOH.gsub(/^ {6}/, "")
#VAGRANT-BEGIN
# The contents below are automatically generated by Vagrant. Do not modify.
BOOTPROTO='dhcp'
STARTMODE='auto'
DEVICE='ethen0'
#VAGRANT-END
EOH
end
end