4c39102720
* Many fixes and improvements Related blueprint: deployment-dryrun Change-Id: I7cdb4ea455866480a773b803f4dddd66f0fd56d1 Fuel-CI: disable
29 lines
809 B
Ruby
29 lines
809 B
Ruby
require 'spec_helper'
|
|
require 'shared-examples'
|
|
manifest = 'sahara/sahara.pp'
|
|
|
|
describe manifest do
|
|
shared_examples 'catalog' do
|
|
|
|
use_neutron = Noop.hiera 'use_neutron'
|
|
enabled = Noop.hiera_structure 'sahara/enabled'
|
|
db_password = Noop.hiera_structure 'sahara/db_password'
|
|
user_password = Noop.hiera_structure 'sahara/user_password'
|
|
|
|
# Sahara
|
|
if enabled
|
|
it 'should declare sahara class correctly' do
|
|
should contain_class('sahara').with(
|
|
'db_password' => db_password,
|
|
'keystone_password' => user_password,
|
|
'use_neutron' => use_neutron,
|
|
'rpc_backend' => 'rabbit',
|
|
'rabbit_ha_queues' => 'true',
|
|
)
|
|
end
|
|
end
|
|
end
|
|
test_ubuntu_and_centos manifest
|
|
end
|
|
|