|
29 | 29 | it { is_expected.to contain_package('rabbitmq-server-plugins') } if facts[:os]['family'] == 'Suse' |
30 | 30 |
|
31 | 31 | context 'with default params' do |
32 | | - it { is_expected.not_to contain_class('rabbitmq::repo::apt') } |
33 | | - it { is_expected.not_to contain_apt__source('rabbitmq') } |
34 | | - it { is_expected.not_to contain_class('rabbitmq::repo::rhel') } |
35 | | - it { is_expected.not_to contain_yumrepo('rabbitmq') } |
36 | | - end |
37 | | - |
38 | | - context 'with service_restart => false' do |
39 | | - let(:params) { { service_restart: false } } |
40 | | - |
41 | | - it { is_expected.not_to contain_class('rabbitmq::config').that_notifies('Class[rabbitmq::service]') } |
42 | | - end |
43 | | - |
44 | | - context 'with repos_ensure => true' do |
45 | | - let(:params) { { repos_ensure: true } } |
46 | | - |
47 | 32 | if facts[:os]['family'] == 'Debian' |
48 | 33 | it 'includes rabbitmq::repo::apt' do |
49 | 34 | is_expected.to contain_class('rabbitmq::repo::apt'). |
|
78 | 63 | end |
79 | 64 | end |
80 | 65 |
|
| 66 | + context 'with service_restart => false' do |
| 67 | + let(:params) { { service_restart: false } } |
| 68 | + |
| 69 | + it { is_expected.not_to contain_class('rabbitmq::config').that_notifies('Class[rabbitmq::service]') } |
| 70 | + end |
| 71 | + |
| 72 | + context 'with repos_ensure => false' do |
| 73 | + let(:params) { { repos_ensure: false } } |
| 74 | + |
| 75 | + it { is_expected.not_to contain_class('rabbitmq::repo::apt') } |
| 76 | + it { is_expected.not_to contain_apt__source('rabbitmq') } |
| 77 | + it { is_expected.not_to contain_class('rabbitmq::repo::rhel') } |
| 78 | + it { is_expected.not_to contain_yumrepo('rabbitmq') } |
| 79 | + end |
| 80 | + |
81 | 81 | context 'with no pin', if: facts[:os]['family'] == 'Debian' do |
82 | | - let(:params) { { repos_ensure: true, package_apt_pin: '' } } |
| 82 | + let(:params) { { package_apt_pin: '' } } |
83 | 83 |
|
84 | 84 | if Puppet.version =~ %r{^[6,7]} # https://tickets.puppetlabs.com/browse/PUP-9112 and https://tickets.puppetlabs.com/browse/PUP-9180 |
85 | 85 | let(:expected_key_apt_source_key_content) { 'nil' } |
|
99 | 99 | end |
100 | 100 |
|
101 | 101 | context 'with pin', if: facts[:os]['family'] == 'Debian' do |
102 | | - let(:params) { { repos_ensure: true, package_apt_pin: '700' } } |
| 102 | + let(:params) { { package_apt_pin: '700' } } |
103 | 103 |
|
104 | 104 | if Puppet.version =~ %r{^[6,7]} # https://tickets.puppetlabs.com/browse/PUP-9112 and https://tickets.puppetlabs.com/browse/PUP-9180 |
105 | 105 | let(:expected_key_apt_source_key_content) { 'nil' } |
|
0 commit comments