fuel-library/tests/noop/spec/hosts/roles/controller_spec.rb

24 lines
530 B
Ruby

require 'spec_helper'
require 'shared-examples'
manifest = 'roles/controller.pp'
describe manifest do
shared_examples 'catalog' do
it 'should set vm.swappiness sysctl to 10' do
should contain_sysctl('vm.swappiness').with(
'val' => '10',
)
end
it 'should make sure python-openstackclient package is installed' do
should contain_package('python-openstackclient').with(
'ensure' => 'installed',
)
end
end # end of shared_examples
test_ubuntu_and_centos manifest
end