Petr Michalec | 6cf80e5 | 2016-07-27 09:46:53 +0200 | [diff] [blame] | 1 | |
| 2 | neutron = { |
| 3 | user: 'root', |
| 4 | group: 'neutron', |
| 5 | } |
| 6 | |
| 7 | |
| 8 | # TODO, load from control-single |
| 9 | control 'neutron control' do |
| 10 | describe file('/etc/neutron/neutron.conf') do |
| 11 | it { should exist } |
| 12 | it { should be_owned_by neutron[:user] } |
| 13 | it { should be_grouped_into neutron[:group] } |
| 14 | end |
| 15 | |
| 16 | describe file('/var/log/neutron') do |
| 17 | it { should be_directory } |
| 18 | end |
| 19 | |
| 20 | describe file('/var/lib/neutron') do |
| 21 | it { should be_directory } |
| 22 | end |
| 23 | end |
| 24 | |
| 25 | |
| 26 | # FIXME, there is no opencontrail plugin installed nor configured |
| 27 | # is the metadata dependency missing? |
| 28 | #control 'neutron control cluster' do |
| 29 | #describe file('/etc/neutron/neutron.conf') do |
| 30 | #its ('content') { should match('^core_plugin.*opencontrail.*')} |
| 31 | #end |
| 32 | #describe file('/etc/neutron/plugins/opencontrail') do |
| 33 | #it { should be_directory } |
| 34 | #end |
| 35 | #end |