|
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 | 6 |
|
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 |
| 7 | + context 'with Debian 10' do |
47 | 8 | let(:facts) do |
48 | 9 | { |
49 | 10 | osfamily: 'Debian', |
50 | 11 | operatingsystem: 'Debian', |
51 | | - operatingsystemrelease: '8.0', |
| 12 | + operatingsystemrelease: '10.0', |
52 | 13 | } |
53 | 14 | end |
54 | 15 |
|
|
66 | 27 | } |
67 | 28 | end |
68 | 29 |
|
69 | | - context 'with deb8, alt operatingsystem, enable => false' do |
| 30 | + context 'with Debian 10, enable => false' do |
70 | 31 | let(:facts) do |
71 | 32 | { |
72 | 33 | osfamily: 'Debian', |
73 | 34 | operatingsystem: 'Debian', |
74 | | - operatingsystemrelease: '8.0', |
| 35 | + operatingsystemrelease: '10', |
75 | 36 | } |
76 | 37 | end |
77 | 38 | let(:params) { { enable: 'false' } } |
|
83 | 44 | } |
84 | 45 | end |
85 | 46 |
|
86 | | - context 'with Debian 10' do |
| 47 | + context 'with Debian 11' do |
87 | 48 | let(:facts) do |
88 | 49 | { |
89 | 50 | osfamily: 'Debian', |
90 | 51 | operatingsystem: 'Debian', |
91 | | - operatingsystemrelease: '10.0', |
| 52 | + operatingsystemrelease: '11.0', |
92 | 53 | } |
93 | 54 | end |
94 | 55 |
|
|
106 | 67 | } |
107 | 68 | end |
108 | 69 |
|
109 | | - context 'with Debian 10, enable => false' do |
| 70 | + context 'with Debian 11, enable => false' do |
110 | 71 | let(:facts) do |
111 | 72 | { |
112 | 73 | osfamily: 'Debian', |
113 | 74 | operatingsystem: 'Debian', |
114 | | - operatingsystemrelease: '10', |
| 75 | + operatingsystemrelease: '11', |
115 | 76 | } |
116 | 77 | end |
117 | 78 | let(:params) { { enable: 'false' } } |
|
0 commit comments