Skip to content

Commit

Permalink
Improve test coverage
Browse files Browse the repository at this point in the history
Improve test coverage in main class spec
  • Loading branch information
wyardley committed Nov 16, 2024
1 parent ec9a24b commit 47498e3
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 47498e3

Please sign in to comment.