
Nova will be removing nova-network soon, this deprecates all the classes and parameters that are related to nova-network and will be removed when nova removes it's support. Please see references in nova.conf [1] and the nova release notes. [2] [1] https://docs.openstack.org/nova/rocky/configuration/sample-config.html [2] https://docs.openstack.org/releasenotes/nova/rocky.html Depends-On: https://review.openstack.org/#/c/614577/ Change-Id: If87ad30e1be62cb767d98045d075340c9513bc90
39 lines
1.4 KiB
Ruby
39 lines
1.4 KiB
Ruby
# TODO(tobias-urdin): This is deprecated and should be removed in T release.
|
|
require 'spec_helper'
|
|
|
|
describe 'nova::network::flat' do
|
|
|
|
describe 'with only required parameters' do
|
|
let :params do
|
|
{
|
|
:fixed_range => '10.0.0.0/32'
|
|
}
|
|
end
|
|
|
|
it { is_expected.to contain_nova_config('DEFAULT/network_manager').with_value('nova.network.manager.FlatManager') }
|
|
it { is_expected.to_not contain_nova_config('DEFAULT/public_interface') }
|
|
it { is_expected.to contain_nova_config('DEFAULT/fixed_range').with_value('10.0.0.0/32') }
|
|
it { is_expected.to contain_nova_config('DEFAULT/flat_network_bridge').with_value('br100') }
|
|
it { is_expected.to contain_nova_config('DEFAULT/flat_interface').with_value(nil) }
|
|
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',
|
|
}
|
|
end
|
|
|
|
it { is_expected.to contain_nova_config('DEFAULT/public_interface').with_value('eth0') }
|
|
it { is_expected.to contain_nova_config('DEFAULT/flat_network_bridge').with_value('br1001') }
|
|
it { is_expected.to contain_nova_config('DEFAULT/fixed_range').with_value('10.0.0.0/32') }
|
|
it { is_expected.to contain_nova_config('DEFAULT/flat_interface').with_value('eth1') }
|
|
|
|
end
|
|
|
|
end
|