|
18 | 18 | let :params do |
19 | 19 | { |
20 | 20 | disable_conntrack: false, |
21 | | - log_dropped_packets: true |
| 21 | + log_dropped_packets: true, |
22 | 22 | } |
23 | 23 | end |
24 | 24 |
|
25 | 25 | it { is_expected.to compile.with_all_deps } |
26 | 26 | it { is_expected.to contain_concat__fragment('filter-INPUT2-config-include') } |
27 | 27 |
|
28 | 28 | it do |
29 | | - expect(subject).to contain_concat__fragment('filter-INPUT2-policy'). \ |
30 | | - with_content(%r{ESTABLISHED RELATED}) |
| 29 | + expect(subject).to contain_concat__fragment('filter-INPUT2-policy') |
| 30 | + .with_content(%r{ESTABLISHED RELATED}) |
31 | 31 | end |
32 | 32 |
|
33 | 33 | it do |
34 | | - expect(subject).to contain_concat__fragment('filter-INPUT2-footer'). \ |
35 | | - with_content(%r{LOG log-prefix 'INPUT2: ';}) |
| 34 | + expect(subject).to contain_concat__fragment('filter-INPUT2-footer') |
| 35 | + .with_content(%r{LOG log-prefix 'INPUT2: ';}) |
36 | 36 | end |
37 | 37 |
|
38 | 38 | if facts[:os]['name'] == 'Debian' |
|
47 | 47 | let :params do |
48 | 48 | { |
49 | 49 | disable_conntrack: true, |
50 | | - log_dropped_packets: false |
| 50 | + log_dropped_packets: false, |
51 | 51 | } |
52 | 52 | end |
53 | 53 |
|
54 | 54 | it { is_expected.to compile.with_all_deps } |
55 | 55 |
|
56 | 56 | it do |
57 | 57 | expect(subject).to contain_concat__fragment('filter-INPUT2-policy') |
58 | | - expect(subject).not_to contain_concat__fragment('filter-INPUT2-policy'). \ |
59 | | - with_content(%r{ESTABLISHED RELATED}) |
| 58 | + expect(subject).not_to contain_concat__fragment('filter-INPUT2-policy') |
| 59 | + .with_content(%r{ESTABLISHED RELATED}) |
60 | 60 | end |
61 | 61 |
|
62 | 62 | it do |
63 | | - expect(subject).not_to contain_concat__fragment('filter-INPUT2-footer'). \ |
64 | | - with_content(%r{LOG log-prefix 'INPUT2: ';}) |
| 63 | + expect(subject).not_to contain_concat__fragment('filter-INPUT2-footer') |
| 64 | + .with_content(%r{LOG log-prefix 'INPUT2: ';}) |
65 | 65 | end |
66 | 66 | end |
67 | 67 |
|
|
71 | 71 | chain: 'INPUT2', |
72 | 72 | policy: 'DROP', |
73 | 73 | disable_conntrack: true, |
74 | | - log_dropped_packets: false |
| 74 | + log_dropped_packets: false, |
75 | 75 | } |
76 | 76 | end |
77 | 77 |
|
|
82 | 82 | let(:title) { 'FERM-DSL' } |
83 | 83 | let :params do |
84 | 84 | { |
85 | | - content: 'mod rpfilter invert DROP;' |
| 85 | + content: 'mod rpfilter invert DROP;', |
86 | 86 | } |
87 | 87 | end |
88 | 88 |
|
89 | 89 | it { is_expected.to compile.with_all_deps } |
90 | 90 | it { is_expected.to contain_concat__fragment('filter-FERM-DSL-config-include') } |
91 | 91 |
|
92 | 92 | it do |
93 | | - expect(subject).to contain_concat__fragment('filter-FERM-DSL-custom-content'). \ |
94 | | - with_content(%r{mod rpfilter invert DROP;}) |
| 93 | + expect(subject).to contain_concat__fragment('filter-FERM-DSL-custom-content') |
| 94 | + .with_content(%r{mod rpfilter invert DROP;}) |
95 | 95 | end |
96 | 96 |
|
97 | 97 | it do |
|
0 commit comments