|
27 | 27 | end |
28 | 28 |
|
29 | 29 | context 'with default params' do |
30 | | - it { is_expected.not_to contain_class('rabbitmq::repo::apt') } |
31 | | - it { is_expected.not_to contain_apt__source('rabbitmq') } |
32 | | - it { is_expected.not_to contain_class('rabbitmq::repo::rhel') } |
33 | | - it { is_expected.not_to contain_yumrepo('rabbitmq') } |
34 | | - end |
35 | | - |
36 | | - context 'with service_restart => false' do |
37 | | - let(:params) { { service_restart: false } } |
38 | | - |
39 | | - it { is_expected.not_to contain_class('rabbitmq::config').that_notifies('Class[rabbitmq::service]') } |
40 | | - end |
41 | | - |
42 | | - context 'with repos_ensure => true' do |
43 | | - let(:params) { { repos_ensure: true } } |
44 | | - |
45 | 30 | if facts[:os]['family'] == 'Debian' |
46 | 31 | it 'includes rabbitmq::repo::apt' do |
47 | 32 | is_expected.to contain_class('rabbitmq::repo::apt'). |
|
76 | 61 | end |
77 | 62 | end |
78 | 63 |
|
| 64 | + context 'with service_restart => false' do |
| 65 | + let(:params) { { service_restart: false } } |
| 66 | + |
| 67 | + it { is_expected.not_to contain_class('rabbitmq::config').that_notifies('Class[rabbitmq::service]') } |
| 68 | + end |
| 69 | + |
| 70 | + context 'with repos_ensure => false' do |
| 71 | + let(:params) { { repos_ensure: false } } |
| 72 | + |
| 73 | + it { is_expected.not_to contain_class('rabbitmq::repo::apt') } |
| 74 | + it { is_expected.not_to contain_apt__source('rabbitmq') } |
| 75 | + it { is_expected.not_to contain_class('rabbitmq::repo::rhel') } |
| 76 | + it { is_expected.not_to contain_yumrepo('rabbitmq') } |
| 77 | + end |
| 78 | + |
79 | 79 | context 'with no pin', if: facts[:os]['family'] == 'Debian' do |
80 | 80 | let(:params) { { repos_ensure: true, package_apt_pin: '' } } |
81 | 81 |
|
|
0 commit comments