Fix unit tests
Minor issue with stubs white space cleanup Change-Id: Ib871bdda15a1e83a6b21bf41cdeb28dfa4ed89a0
This commit is contained in:
parent
ddd565c86f
commit
6c452b6405
|
@ -198,7 +198,7 @@ default['openstack']['object-storage']['statistics']['sample_rate'] = 1
|
|||
#
|
||||
# if no servers with the role below can be found then
|
||||
# 127.0.0.1 will be used
|
||||
default['openstack']['object-storage']['statistics']['graphing_ip'] = nil
|
||||
default['openstack']['object-storage']['statistics']['graphing_ip'] = nil
|
||||
default['openstack']['object-storage']['statistics']['graphing_role'] = 'graphite-role'
|
||||
default['openstack']['object-storage']['statistics']['graphing_interface'] = 'eth0'
|
||||
|
||||
|
|
|
@ -164,7 +164,7 @@ action :ensure_exists do
|
|||
next
|
||||
end
|
||||
|
||||
req_size = params[:size] # size in Mb - convert to blocks
|
||||
req_size = params[:size] # size in Mb - convert to blocks
|
||||
if req_size == :remaining
|
||||
req_size = disk_blocks - current_block
|
||||
else
|
||||
|
|
|
@ -4,7 +4,7 @@ require_relative 'spec_helper'
|
|||
|
||||
describe 'openstack-object-storage::ring-repo' do
|
||||
describe 'ubuntu' do
|
||||
let(:runner) { ChefSpec::Runner.new(UBUNTU_OPTS) }
|
||||
let(:runner) { ChefSpec::SoloRunner.new(UBUNTU_OPTS) }
|
||||
let(:node) { runner.node }
|
||||
let(:chef_run) { runner.converge(described_recipe) }
|
||||
let(:events) { Chef::EventDispatch::Dispatcher.new }
|
||||
|
|
|
@ -49,6 +49,8 @@ MOCK_NODE_NETWORK_DATA =
|
|||
|
||||
shared_context 'swift-stubs' do
|
||||
before do
|
||||
stub_command('dpkg -s memcached').and_return(true)
|
||||
stub_command('getent passwd memcache').and_return(true)
|
||||
stub_command('/usr/bin/id swift').and_return(true)
|
||||
stub_command('[ -x /etc/swift/pull-rings.sh ]').and_return(true)
|
||||
stub_command('[ -f /etc/rsyncd.conf ]').and_return(true)
|
||||
|
|
Loading…
Reference in New Issue