Files
puppet-nova/spec/classes/nova_objectstore_spec.rb
Iury Gregory Melo Ferreira 2a4e110a7e Switch Nova to $::os_service_default - Part1
Switch Nova to use $::os_service_default
Change logging.pp, db.pp and tests.

Change-Id: I928a93534c6d27c020b7afb5b7dda32c379e9d62
Related-bug: #1515273
2015-12-01 12:31:22 +00:00

49 lines
1.3 KiB
Ruby

require 'spec_helper'
describe 'nova::objectstore' do
let :pre_condition do
'include nova'
end
context 'on Debian platforms' do
let :facts do
@default_facts.merge({ :osfamily => 'Debian' })
end
it_behaves_like 'generic nova service', {
:name => 'nova-objectstore',
:package_name => 'nova-objectstore',
:service_name => 'nova-objectstore' }
it { is_expected.to contain_nova_config('DEFAULT/s3_listen').with_value('0.0.0.0') }
context 'with custom bind parameter' do
let :params do
{ :bind_address => '192.168.0.1'}
end
it { is_expected.to contain_nova_config('DEFAULT/s3_listen').with_value('192.168.0.1') }
end
end
context 'on RedHat platforms' do
let :facts do
@default_facts.merge({ :osfamily => 'RedHat' })
end
it_behaves_like 'generic nova service', {
:name => 'nova-objectstore',
:package_name => 'openstack-nova-objectstore',
:service_name => 'openstack-nova-objectstore' }
it { is_expected.to contain_nova_config('DEFAULT/s3_listen').with_value('0.0.0.0')}
context 'with custom bind parameter' do
let :params do
{ :bind_address => '192.168.0.1'}
end
it { is_expected.to contain_nova_config('DEFAULT/s3_listen').with_value('192.168.0.1') }
end
end
end