blob: 092643230947dba09a71de04249ff047fa720e49 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
require 'spec_helper'
describe 'ferm::rule', type: :define do
on_supported_os.each do |os, facts|
context "on #{os} " do
let :facts do
facts
end
let(:title) { 'filter-ssh' }
let :params do
{
chain: 'INPUT',
policy: 'ACCEPT',
proto: 'tcp',
dport: '22',
saddr: '127.0.0.1'
}
end
context 'default params create simple rule' do
it { is_expected.to compile.with_all_deps }
# it { is_expected.to contain_concat__fragment('INPUT-filter-ssh').with_content("proto tcp dport ssh saddr @ipfilter(127.0.0.1) ACCEPT;") }
it { is_expected.to contain_concat__fragment('INPUT-filter-ssh') }
end
end
end
end
|