
I had previously checked in some broken tests that resulted from the updating the concat fragments names to ensure uniqueness between services (eg, choosing fragment names like HEADER were causing duplicate resource errors, these have been prefixed with the service name glance-api to ensure uniqueness) This commit updates the tests so that they work for this previous commit (oops!)
25 lines
628 B
Ruby
25 lines
628 B
Ruby
require 'spec_helper'
|
|
describe 'glance::notify::qpid' do
|
|
let :facts do
|
|
{
|
|
:osfamily => 'Debian'
|
|
}
|
|
end
|
|
describe 'with default parameters' do
|
|
it 'should set nofier strategy to qpid' do
|
|
verify_contents(
|
|
subject,
|
|
'/var/lib/puppet/concat/_etc_glance_glance-api.conf/fragments/06_glance-api-notify',
|
|
['notifier_strategy = qpid']
|
|
)
|
|
end
|
|
it 'should use the current qpid template' do
|
|
verify_contents(
|
|
subject,
|
|
'/var/lib/puppet/concat/_etc_glance_glance-api.conf/fragments/07_glance-api-qpid',
|
|
['#qpid_port = 5672']
|
|
)
|
|
end
|
|
end
|
|
end
|