fuel-library/tests/noop/spec/hosts/hiera/override_configuration_spec.rb

32 lines
682 B
Ruby

# ROLE: virt
# ROLE: primary-mongo
# ROLE: primary-controller
# ROLE: mongo
# ROLE: ironic
# ROLE: controller
# ROLE: compute
# ROLE: cinder-block-device
# ROLE: cinder
# ROLE: ceph-osd
# ROLE: base-os
require 'spec_helper'
require 'shared-examples'
manifest = 'hiera/override_configuration.pp'
describe manifest do
shared_examples 'catalog' do
it 'should setup hiera override configuration' do
['/etc/hiera/override', '/etc/hiera/override/configuration'].each do |f|
should contain_file(f).with(
'ensure' => 'directory',
'path' => f,
'mode' => '0750',
)
end
end
end
test_ubuntu_and_centos manifest
end