diff options
author | Zack Smith <acidprime@wallcity.org> | 2012-10-10 17:12:10 -0700 |
---|---|---|
committer | Zack Smith <acidprime@wallcity.org> | 2012-10-10 17:12:10 -0700 |
commit | 1b18d7d86174b3f74ddfb0021bbc658d3a9ece47 (patch) | |
tree | 9a36d85fc982fdb1bb98f6a51373b87351a92ad7 /spec | |
parent | 13d91ef8f8340a941d197c53122b841499f9b786 (diff) | |
parent | d7ffbc326a8172bb0d0ecb888ed12d2c7e3eb7fd (diff) |
Merge pull request #9 from hunner/manage_service
Add manage_service parameter for corosync
Diffstat (limited to 'spec')
-rw-r--r-- | spec/classes/haproxy_spec.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/spec/classes/haproxy_spec.rb b/spec/classes/haproxy_spec.rb index fa171f3..4b5902c 100644 --- a/spec/classes/haproxy_spec.rb +++ b/spec/classes/haproxy_spec.rb @@ -83,6 +83,26 @@ describe 'haproxy', :type => :class do end end end + context "on #{osfamily} family operatingsystems without managing the service" do + let(:facts) do + { :osfamily => osfamily }.merge default_facts + end + let(:params) do + { + 'enable' => true, + 'manage_service' => false, + } + end + it { should include_class('concat::setup') } + it 'should install the haproxy package' do + subject.should contain_package('haproxy').with( + 'ensure' => 'present' + ) + end + it 'should install the haproxy service' do + subject.should_not contain_service('haproxy') + end + end end end describe 'for OS-specific configuration' do |