|
3 | 3 | require 'spec_helper' |
4 | 4 |
|
5 | 5 | describe 'firewall::linux::debian', type: :class do |
6 | | - context 'with Debian 8' do |
7 | | - let(:facts) do |
8 | | - { |
9 | | - osfamily: 'Debian', |
10 | | - operatingsystem: 'Debian', |
11 | | - operatingsystemrelease: 'jessie/sid', |
12 | | - } |
13 | | - end |
14 | | - |
15 | | - it { |
16 | | - is_expected.to contain_package('iptables-persistent').with( |
17 | | - ensure: 'installed', |
18 | | - ) |
19 | | - } |
20 | | - it { |
21 | | - is_expected.to contain_service('netfilter-persistent').with( |
22 | | - ensure: nil, |
23 | | - enable: 'true', |
24 | | - require: 'Package[iptables-persistent]', |
25 | | - ) |
26 | | - } |
27 | | - end |
28 | | - |
29 | | - context 'with deb8 enable => false' do |
30 | | - let(:facts) do |
31 | | - { |
32 | | - osfamily: 'Debian', |
33 | | - operatingsystem: 'Debian', |
34 | | - operatingsystemrelease: 'jessie/sid', |
35 | | - } |
36 | | - end |
37 | | - let(:params) { { enable: 'false' } } |
38 | | - |
39 | | - it { |
40 | | - is_expected.to contain_service('netfilter-persistent').with( |
41 | | - enable: 'false', |
42 | | - ) |
43 | | - } |
44 | | - end |
45 | | - |
46 | | - context 'with Debian 8, alt operatingsystem' do |
| 6 | + context 'with Debian 10' do |
47 | 7 | let(:facts) do |
48 | 8 | { |
49 | 9 | osfamily: 'Debian', |
50 | 10 | operatingsystem: 'Debian', |
51 | | - operatingsystemrelease: '8.0', |
| 11 | + operatingsystemrelease: '10.0', |
52 | 12 | } |
53 | 13 | end |
54 | 14 |
|
|
66 | 26 | } |
67 | 27 | end |
68 | 28 |
|
69 | | - context 'with deb8, alt operatingsystem, enable => false' do |
| 29 | + context 'with Debian 10, enable => false' do |
70 | 30 | let(:facts) do |
71 | 31 | { |
72 | 32 | osfamily: 'Debian', |
73 | 33 | operatingsystem: 'Debian', |
74 | | - operatingsystemrelease: '8.0', |
| 34 | + operatingsystemrelease: '10', |
75 | 35 | } |
76 | 36 | end |
77 | 37 | let(:params) { { enable: 'false' } } |
|
83 | 43 | } |
84 | 44 | end |
85 | 45 |
|
86 | | - context 'with Debian 10' do |
| 46 | + context 'with Debian 11' do |
87 | 47 | let(:facts) do |
88 | 48 | { |
89 | 49 | osfamily: 'Debian', |
90 | 50 | operatingsystem: 'Debian', |
91 | | - operatingsystemrelease: '10.0', |
| 51 | + operatingsystemrelease: '11.0', |
92 | 52 | } |
93 | 53 | end |
94 | 54 |
|
|
106 | 66 | } |
107 | 67 | end |
108 | 68 |
|
109 | | - context 'with Debian 10, enable => false' do |
| 69 | + context 'with Debian 11, enable => false' do |
110 | 70 | let(:facts) do |
111 | 71 | { |
112 | 72 | osfamily: 'Debian', |
113 | 73 | operatingsystem: 'Debian', |
114 | | - operatingsystemrelease: '10', |
| 74 | + operatingsystemrelease: '11', |
115 | 75 | } |
116 | 76 | end |
117 | 77 | let(:params) { { enable: 'false' } } |
|
0 commit comments