fuel-library/tests/noop/spec/hosts/ceilometer/radosgw_user_spec.rb

26 lines
642 B
Ruby

# ROLE: primary-controller
# ROLE: controller
require 'spec_helper'
require 'shared-examples'
manifest = 'ceilometer/radosgw_user.pp'
describe manifest do
shared_examples 'catalog' do
ceilometer_hash = Noop.hiera_structure 'ceilometer'
storage_hash = Noop.hiera_hash 'storage'
if ceilometer_hash['enabled'] and storage_hash['objects_ceph']
it 'should configure Ceilometer user in RadosGW' do
should contain_ceilometer_radosgw_user('ceilometer').with(
:caps => {'buckets' => 'read', 'usage' => 'read'}
)
end
end
end # end of shared_examples
test_ubuntu_and_centos manifest
end