
This commit removes all code that was related to deprecations, including tests put in during the liberty release cycle and increases the verbosity of warnings provided for code deprecated during this cycle (Mitaka). Change-Id: I991654c6c0706eea31a6702703596e73080bec4e
51 lines
945 B
Ruby
51 lines
945 B
Ruby
require 'spec_helper'
|
|
|
|
describe 'cinder::rabbitmq' do
|
|
|
|
let :facts do
|
|
{
|
|
:osfamily => 'Debian',
|
|
}
|
|
end
|
|
|
|
describe 'with defaults' do
|
|
|
|
it 'should contain all of the default resources' do
|
|
|
|
is_expected.to contain_rabbitmq_vhost('/').with(
|
|
:provider => 'rabbitmqctl'
|
|
)
|
|
end
|
|
|
|
end
|
|
|
|
describe 'when a rabbitmq user is specified' do
|
|
|
|
let :params do
|
|
{
|
|
:userid => 'dan',
|
|
:password => 'pass'
|
|
}
|
|
end
|
|
|
|
it 'should contain user and permissions' do
|
|
|
|
is_expected.to contain_rabbitmq_user('dan').with(
|
|
:admin => true,
|
|
:password => 'pass',
|
|
:provider => 'rabbitmqctl'
|
|
)
|
|
|
|
is_expected.to contain_rabbitmq_user_permissions('dan@/').with(
|
|
:configure_permission => '.*',
|
|
:write_permission => '.*',
|
|
:read_permission => '.*',
|
|
:provider => 'rabbitmqctl'
|
|
)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|