fuel-library/tests/noop/spec/hosts/cgroups/cgroups_spec.rb

37 lines
744 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 = 'cgroups/cgroups.pp'
describe manifest do
shared_examples 'catalog' do
cgroups_config = Noop.hiera_hash 'cgroups', {}
cgroups_settings = Noop.puppet_function(
'prepare_cgroups_hash',
cgroups_config
)
unless cgroups_settings.empty?
it 'should declare cgroups class correctly' do
should contain_class('cgroups').with(
'cgroups_set' => cgroups_settings,
)
end
end
end
test_ubuntu_and_centos manifest
end