fuel-library/tests/noop/spec/hosts/cgroups/cgroups_spec.rb
Aleksandr Didenko 6908722cfc Switch from RUN: to ROLE: annotation
* RUN annotation caused duplication for tasks in the old folder
* RUN should only be used if you need non-standard run configuration
* With ROLE annotation there's no need to update all the tests
  when you add new astute.yaml fixture for existing role
* Fix manifest variable in broken tests

Change-Id: I7a1c98bdb51590d8d80cee387de35d5581cf1da2
Partial-bug: #1535339
2016-04-07 15:46:46 +02:00

39 lines
859 B
Ruby

# ROLE: virt
# ROLE: primary-mongo
# ROLE: primary-controller
# ROLE: mongo
# ROLE: ironic
# ROLE: controller
# ROLE: compute-vmware
# ROLE: compute
# ROLE: cinder-vmware
# 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
before(:each) do
Noop.puppet_function_load :prepare_cgroups_hash
MockFunction.new(:prepare_cgroups_hash) do |function|
allow(function).to receive(:call).and_return({})
end
end
shared_examples 'catalog' do
cgroups_hash = Noop.hiera_structure('cgroups', nil)
if cgroups_hash
it 'should declare cgroups class correctly' do
should contain_class('cgroups').with(
'cgroups_set' => {},
)
end
end
end
test_ubuntu_and_centos manifest
end