Files
puppet-nova/spec/classes/nova_objectstore_spec.rb
Michael Chapman 3e9b901d04 Add nova-objectstore bind address
This patch provides an additional parameter
that allows the user to specify a bind address
for the objectstore service.

Change-Id: Ib6d3ba0edd7d0b554231d6db1125e963843c9795
2014-02-28 16:41:52 +11:00

49 lines
1.2 KiB
Ruby

require 'spec_helper'
describe 'nova::objectstore' do
let :pre_condition do
'include nova'
end
context 'on Debian platforms' do
let :facts do
{ :osfamily => 'Debian' }
end
it_behaves_like 'generic nova service', {
:name => 'nova-objectstore',
:package_name => 'nova-objectstore',
:service_name => 'nova-objectstore' }
it { should 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 { should contain_nova_config('DEFAULT/s3_listen').with_value('192.168.0.1') }
end
end
context 'on RedHat platforms' do
let :facts do
{ :osfamily => 'RedHat' }
end
it_behaves_like 'generic nova service', {
:name => 'nova-objectstore',
:package_name => 'openstack-nova-objectstore',
:service_name => 'openstack-nova-objectstore' }
it { should 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 { should contain_nova_config('DEFAULT/s3_listen').with_value('192.168.0.1') }
end
end
end