Skip to content

Commit

Permalink
Merge pull request #1028 from wyardley/wyardley/test_coverage
Browse files Browse the repository at this point in the history
Improve test coverage
  • Loading branch information
wyardley authored Nov 16, 2024
2 parents 8766c13 + f43d0ef commit b39f987
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/classes/rabbitmq_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
it { is_expected.to contain_class('rabbitmq::install') }
it { is_expected.to contain_class('rabbitmq::config').that_notifies('Class[rabbitmq::service]') }
it { is_expected.to contain_class('rabbitmq::service') }
it { is_expected.to contain_class('rabbitmq::management') }

it { is_expected.to contain_package(name).with_ensure('installed').with_name(name) }

Expand Down Expand Up @@ -188,6 +189,8 @@
notify: 'Class[Rabbitmq::Service]'
)
is_expected.to contain_archive('rabbitmqadmin').with_source('http://1.1.1.1:15672/cli/rabbitmqadmin')
is_expected.to contain_file('/usr/local/bin/rabbitmqadmin').with_owner('root').with_mode('0755')
is_expected.to contain_exec('remove_old_rabbitmqadmin_on_upgrade').with_command("rm #{rabbitmq_home}/rabbitmqadmin")
end

it { is_expected.to contain_package('python') } if %w[RedHat SUSE Archlinux].include?(os_facts['os']['family'])
Expand Down

0 comments on commit b39f987

Please sign in to comment.