fuel-library/tests/noop/spec/hosts/sahara/sahara_spec.rb
Dmitry Ilyin 4c39102720 Improve Noop tests
* Many fixes and improvements

Related blueprint: deployment-dryrun

Change-Id: I7cdb4ea455866480a773b803f4dddd66f0fd56d1
Fuel-CI: disable
2015-04-21 17:08:22 +03:00

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