Files
puppet-sahara/spec/classes/sahara_init_spec.rb
Sebastien Badia a0f14ef9dd Rewrite puppet-sahara from scratch
During the Kilo summit, we talked about the state of the current
puppet-sahara module on stackforge, and especially about the brought up parity with
other modules.

For theses reasons, the rewrite was launched/leaded by Robbie Harwood,
but directly coded on Github (and not in a feature branch in this
repository), for this reason, this patch is non-atomic, and import the
latest frozencemetery/puppet-sahara version¹.

This rewrite/import was approved on puppet-openstack mailing list
(following this thread²).

The «reset» of the stackforge repo was discussed (in order to keep the history
of Robbie module) on #openstack-infra, but it seems we have no simple solution.

¹05af265b15
²https://groups.google.com/a/puppetlabs.com/forum/#!topic/puppet-openstack/0BETdNvrd70

Co-Authored-By: Robbie Harwood <rharwood@redhat.com>
Change-Id: Ic3dd7547fdfcba275d8a8b90b8ba84bc3ce1d7c0
2015-02-05 20:40:12 +01:00

50 lines
987 B
Ruby

#
# Unit tests for sahara::init
#
require 'spec_helper'
describe 'sahara' do
let :params do
{
:keystone_password => 'secrete'
}
end
shared_examples_for 'sahara' do
it { should contain_class('sahara::params') }
it { should contain_class('mysql::bindings::python') }
it { should contain_exec('sahara-dbmanage') }
end
context 'on Debian platforms' do
let :facts do
{
:osfamily => 'Debian',
:operatingsystem => 'Debian'
}
end
it_configures 'sahara'
it_behaves_like 'generic sahara service', {
:name => 'sahara',
:package_name => 'sahara',
:service_name => 'sahara' }
end
context 'on RedHat platforms' do
let :facts do
{ :osfamily => 'RedHat' }
end
it_configures 'sahara'
it_behaves_like 'generic sahara service', {
:name => 'sahara',
:package_name => 'openstack-sahara',
:service_name => 'openstack-sahara-all' }
end
end