b9e73b3099
Remove the deprecated rabbit params which has been deprecated for two years. The default_transport_url has been present for a while now and should be used. Change-Id: I6b239ffca2184f553311428b92cd7043b4289b63
60 lines
1.2 KiB
Ruby
60 lines
1.2 KiB
Ruby
require 'spec_helper'
|
|
|
|
describe 'neutron::plugins::ml2::fujitsu' do
|
|
|
|
let :pre_condition do
|
|
"class { '::neutron::keystone::authtoken':
|
|
password => 'passw0rd',
|
|
}
|
|
class { 'neutron::server': }
|
|
class { 'neutron':
|
|
core_plugin => 'neutron.plugins.ml2.plugin.Ml2Plugin' }"
|
|
end
|
|
|
|
let :default_params do
|
|
{
|
|
:package_ensure => 'present'
|
|
}
|
|
end
|
|
|
|
let :params do
|
|
{}
|
|
end
|
|
|
|
let :test_facts do
|
|
{
|
|
:operatingsystem => 'default',
|
|
:operatingsystemrelease => 'default',
|
|
:concat_basedir => '/',
|
|
}
|
|
end
|
|
|
|
shared_examples_for 'neutron plugin fujitsu ml2' do
|
|
before do
|
|
params.merge!(default_params)
|
|
end
|
|
|
|
it { is_expected.to contain_class('neutron::params') }
|
|
|
|
it 'should have' do
|
|
is_expected.to contain_package('python-networking-fujitsu').with(
|
|
:ensure => params[:package_ensure],
|
|
:tag => 'openstack'
|
|
)
|
|
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_configures 'neutron plugin fujitsu ml2'
|
|
end
|
|
end
|
|
end
|
|
|