From 656920f00342e611fd3b38bde5c9f7119b30545a Mon Sep 17 00:00:00 2001 From: Yanis Guenane Date: Tue, 10 Mar 2015 12:01:36 +0100 Subject: [PATCH] spec: Fix loadbalancer test Current implementation of rspec-test tests the actual implementation of the puppet-sysctl when it should actually only the the API. We recently changed the commit of the puppet-sysctl[1] module we are using and the module itself changed its implemention of how it was doing things[2]. [1] https://github.com/redhat-openstack/openstack-puppet-modules/commit/2996f12d551986eb349a0e8637990b45e82dcfe1 [2] https://github.com/duritong/puppet-sysctl/commit/3eca30a6dc5fa69ae3f068c151e73e424d6bb30c Change-Id: Ia79058e41ce8bfb52adc0c338a8b8594637d7e01 --- spec/classes/cloud_loadbalancer_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/classes/cloud_loadbalancer_spec.rb b/spec/classes/cloud_loadbalancer_spec.rb index d77d1375..fff54bc0 100644 --- a/spec/classes/cloud_loadbalancer_spec.rb +++ b/spec/classes/cloud_loadbalancer_spec.rb @@ -99,9 +99,9 @@ describe 'cloud::loadbalancer' do end # configure keepalived server it 'configure sysctl to allow HAproxy to bind to a non-local IP address' do - is_expected.to contain_exec('exec_sysctl_net.ipv4.ip_nonlocal_bind').with_command( - 'sysctl -w net.ipv4.ip_nonlocal_bind=1' - ) + is_expected.to contain_sysctl__value('net.ipv4.ip_nonlocal_bind').with({ + :value => 1, + }) end it 'do not configure an internal VRRP instance by default' do