X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=3rdparty%2Fmodules%2Fnova%2Fspec%2Fclasses%2Fnova_network_flatdhcp_spec.rb;fp=3rdparty%2Fmodules%2Fnova%2Fspec%2Fclasses%2Fnova_network_flatdhcp_spec.rb;h=0000000000000000000000000000000000000000;hb=6e1426dc77fb4e5d51f07c187c6f2219431dc31e;hp=9b146ea4d86ba7c8a25b764dff911ecdf2515610;hpb=87423ba664cd5f2bb462ebadd08b1a90d0fe1c8d;p=mirror%2Fdsa-puppet.git diff --git a/3rdparty/modules/nova/spec/classes/nova_network_flatdhcp_spec.rb b/3rdparty/modules/nova/spec/classes/nova_network_flatdhcp_spec.rb deleted file mode 100644 index 9b146ea4d..000000000 --- a/3rdparty/modules/nova/spec/classes/nova_network_flatdhcp_spec.rb +++ /dev/null @@ -1,49 +0,0 @@ -require 'spec_helper' - -describe 'nova::network::flatdhcp' do - - describe 'with only required parameters' do - let :params do - { - :flat_interface => 'eth1', - :fixed_range => '10.0.0.0/32' - } - end - - it { should contain_nova_config('DEFAULT/network_manager').with_value('nova.network.manager.FlatDHCPManager') } - it { should_not contain_nova_config('DEFAULT/public_interface') } - it { should contain_nova_config('DEFAULT/fixed_range').with_value('10.0.0.0/32') } - it { should contain_nova_config('DEFAULT/flat_interface').with_value('eth1') } - it { should contain_nova_config('DEFAULT/flat_interface').with_value('eth1') } - it { should contain_nova_config('DEFAULT/flat_network_bridge').with_value('br100') } - it { should contain_nova_config('DEFAULT/force_dhcp_release').with_value(true) } - it { should contain_nova_config('DEFAULT/flat_injected').with_value(false) } - it { should contain_nova_config('DEFAULT/dhcpbridge').with_value('/usr/bin/nova-dhcpbridge') } - it { should contain_nova_config('DEFAULT/dhcpbridge_flagfile').with_value('/etc/nova/nova.conf') } - end - - describe 'when overriding class parameters' do - - let :params do - { - :flat_interface => 'eth1', - :fixed_range => '10.0.0.0/32', - :public_interface => 'eth0', - :flat_network_bridge => 'br1001', - :force_dhcp_release => false, - :flat_injected => true, - :dhcpbridge => '/usr/bin/dhcpbridge', - :dhcpbridge_flagfile => '/etc/nova/nova-dhcp.conf' - } - end - - it { should contain_nova_config('DEFAULT/public_interface').with_value('eth0') } - it { should contain_nova_config('DEFAULT/flat_network_bridge').with_value('br1001') } - it { should contain_nova_config('DEFAULT/force_dhcp_release').with_value(false) } - it { should contain_nova_config('DEFAULT/flat_injected').with_value(true) } - it { should contain_nova_config('DEFAULT/dhcpbridge').with_value('/usr/bin/dhcpbridge') } - it { should contain_nova_config('DEFAULT/dhcpbridge_flagfile').with_value('/etc/nova/nova-dhcp.conf') } - - end - -end