|
41 | 41 | :require => 'Package[neutron-plugin-linuxbridge]' |
42 | 42 | ) |
43 | 43 | end |
44 | | - |
45 | 44 | end |
46 | 45 |
|
47 | | - |
48 | 46 | context 'on Debian platforms' do |
49 | 47 | let :facts do |
50 | 48 | { :osfamily => 'Debian' } |
|
54 | 52 | { :linuxbridge_plugin_package => 'neutron-plugin-linuxbridge' } |
55 | 53 | end |
56 | 54 |
|
57 | | - it_configures 'neutron linuxbridge plugin' |
58 | | - it 'configures /etc/default/neutron-server' do |
59 | | - should contain_file_line('/etc/default/neutron-server:NEUTRON_PLUGIN_CONFIG').with( |
60 | | - :line => 'NEUTRON_PLUGIN_CONFIG=/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini', |
61 | | - :require => ['Package[neutron-plugin-linuxbridge]', 'Package[neutron-server]'] |
62 | | - ) |
| 55 | + context 'on Ubuntu operating systems' do |
| 56 | + before do |
| 57 | + facts.merge!({:operatingsystem => 'Ubuntu'}) |
| 58 | + end |
| 59 | + |
| 60 | + it 'configures /etc/default/neutron-server' do |
| 61 | + should contain_file_line('/etc/default/neutron-server:NEUTRON_PLUGIN_CONFIG').with( |
| 62 | + :path => '/etc/default/neutron-server', |
| 63 | + :match => '^NEUTRON_PLUGIN_CONFIG=(.*)$', |
| 64 | + :line => 'NEUTRON_PLUGIN_CONFIG=/etc/neutron/plugins/linuxbridge/linuxbridge_conf.ini', |
| 65 | + :require => ['Package[neutron-plugin-linuxbridge]', 'Package[neutron-server]'], |
| 66 | + :notify => 'Service[neutron-server]' |
| 67 | + ) |
| 68 | + end |
| 69 | + it_configures 'neutron linuxbridge plugin' |
| 70 | + end |
| 71 | + |
| 72 | + context 'on Debian operating systems' do |
| 73 | + before do |
| 74 | + facts.merge!({:operatingsystem => 'Debian'}) |
| 75 | + end |
| 76 | + |
| 77 | + it_configures 'neutron linuxbridge plugin' |
63 | 78 | end |
64 | 79 | end |
65 | 80 |
|
|
0 commit comments