Skip to content

Commit

Permalink
Fix test cases for voxpupuli#623 (manage_python)
Browse files Browse the repository at this point in the history
  • Loading branch information
William Yardley committed Sep 9, 2017
1 parent 2562077 commit d494b3e
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,21 @@
)
is_expected.to contain_archive('rabbitmqadmin').with_source('http://1.1.1.1:15672/cli/rabbitmqadmin')
end
if facts[:os]['family'] == 'Debian'
it 'python is in the catalog on Debian / Ubuntu' do
is_expected.to contain_package('python')
end
if %w[RedHat Debian SUSE].include?(facts[:os]['family'])
it { is_expected.to contain_package('python') }
end
if %w[Archlinux FreeBSD OpenBSD].include?(facts[:os]['family'])
it { is_expected.to contain_package('python2') }
end
end
context 'with manage_python false' do
let(:params) { { manage_python: false } }
it do
is_expected.to contain_class('rabbitmq::install::rabbitmqadmin')
is_expected.not_to contain_package('python')
is_expected.not_to contain_package('python2')
end
end
context 'with $management_ip_address undef and service_manage set to true' do
let(:params) { { admin_enable: true, management_ip_address: :undef } }

Expand Down

0 comments on commit d494b3e

Please sign in to comment.