Fix unit tests

Minor issue with stubs
white space cleanup

Change-Id: Ib871bdda15a1e83a6b21bf41cdeb28dfa4ed89a0
This commit is contained in:
Mark Vanderwiel 2015-11-11 09:40:34 -06:00
parent ddd565c86f
commit 6c452b6405
4 changed files with 5 additions and 3 deletions

View File

@ -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'

View File

@ -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

View File

@ -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 }

View File

@ -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)