Files
puppet-nova/spec/classes/nova_qpid_spec.rb
Dan Prince 258e4f41a7 Add support for configuring qpid.
Support for qpid which uses dprince/qpid (posted on puppetforge).

Currently requires dprince/qpid 1.0.0 or greater.

Change-Id: Iaad3ce107314865ba2f1e620ed7e7e445c73a2db
2013-04-12 07:43:21 -04:00

51 lines
884 B
Ruby

require 'spec_helper'
describe 'nova::qpid' do
let :facts do
{:puppetversion => '2.7'}
end
describe 'with defaults' do
it 'should contain all of the default resources' do
should contain_class('qpid::server').with(
:service_ensure => 'running',
:port => '5672'
)
end
it 'should contain user' do
should contain_qpid_user('guest').with(
:password => 'guest',
:file => '/var/lib/qpidd/qpidd.sasldb',
:realm => 'OPENSTACK',
:provider => 'saslpasswd2'
)
end
end
describe 'when disabled' do
let :params do
{
:enabled => false
}
end
it 'should be disabled' do
should_not contain_qpid_user('guest')
should contain_class('qpid::server').with(
:service_ensure => 'stopped'
)
end
end
end