Merge "Add neutron server dependency for cisco plugin config"

This commit is contained in:
Jenkins 2013-08-20 18:27:08 +00:00 committed by Gerrit Code Review
commit 26f1aed03e
2 changed files with 10 additions and 3 deletions

View File

@ -113,7 +113,7 @@ class neutron::plugins::cisco(
path => '/etc/default/neutron-server',
match => '^NEUTRON_PLUGIN_CONFIG=(.*)$',
line => "NEUTRON_PLUGIN_CONFIG=${::neutron::params::cisco_config_file}",
require => Package['neutron-plugin-cisco'],
require => [ Package['neutron-server'], Package['neutron-plugin-cisco'] ],
notify => Service['neutron-server'],
}
}

View File

@ -122,7 +122,14 @@ describe 'neutron::plugins::cisco' do
context 'on Debian platforms' do
let :facts do
{ :osfamily => 'Debian' }
end
it_configures 'default cisco plugin'
end
it_configures 'default cisco plugin'
it 'configures /etc/default/neutron-server' do
should contain_file_line('/etc/default/neutron-server:NEUTRON_PLUGIN_CONFIG').with(
:line => 'NEUTRON_PLUGIN_CONFIG=/etc/neutron/plugins/cisco/cisco_plugins.ini',
:require => ['Package[neutron-server]', 'Package[neutron-plugin-cisco]']
)
end
end
end