Files
puppet-neutron/spec/classes/neutron_quota_spec.rb
Takashi Kajinami 528290ea2b Deprecate the useless quota_packet_filter parameter
The quota_packet_filter parameter is no longer used in core neutron.
The parameter was used by NEC OpenFlow plugin but the plugin was
migrated to an independent repository[1][2].

Currently puppet-neutron doesn't support the plugin so the parameter
is no longer used in a deployment managed by puppet-neutron.

Because we haven't seen any interest in adding support for the plugin
and the plugin itself has not been updated for a while, let's deprecate
the useless parameter so that we can remove it in the next cycle.

[1] https://opendev.org/x/networking-nec
[2] cfa8f537710d8d7ef407b4194295f15ed03b3fa0

Change-Id: I355526f41f8ec17498dc79a5849f90e5385ccc4e
2021-09-08 00:17:14 +09:00

63 lines
1.4 KiB
Ruby

require 'spec_helper'
describe 'neutron::quota' do
let :params do
{}
end
let :default_params do
{
:quota_network_gateway => 5,
}
end
shared_examples 'neutron::quota test' do
let :params_hash do
default_params.merge(params)
end
it 'configures quota in neutron.conf' do
params_hash.each_pair do |config,value|
should contain_neutron_config("quotas/#{config}").with_value( value )
end
end
end
shared_examples 'neutron::quota' do
context 'with default' do
it_behaves_like 'neutron::quota test'
end
context 'with provided parameters' do
before do
params.merge!({
:quota_network => 20,
:quota_subnet => 20,
:quota_port => 100,
:quota_router => 20,
:quota_floatingip => 100,
:quota_security_group => 20,
:quota_security_group_rule => 200,
:quota_network_gateway => 5,
:quota_vip => 10,
:quota_rbac_policy => 10
})
end
it_behaves_like 'neutron::quota test'
end
end
on_supported_os({
:supported_os => OSDefaults.get_supported_os
}).each do |os,facts|
context "on #{os}" do
let (:facts) do
facts.merge!(OSDefaults.get_facts())
end
it_behaves_like 'neutron::quota'
end
end
end