root / spec / classes / rules / ospf3_spec.rb @ e0bb7852
Historique | Voir | Annoter | Télécharger (889 octets)
1 |
# frozen_string_literal: true
|
---|---|
2 |
|
3 |
require 'spec_helper'
|
4 |
|
5 |
describe 'nftables::rules::ospf3' do |
6 |
on_supported_os.each do |os, os_facts|
|
7 |
context "on #{os}" do |
8 |
let :facts do |
9 |
os_facts |
10 |
end
|
11 |
|
12 |
context 'default options' do |
13 |
it { is_expected.to compile.with_all_deps } |
14 |
it { is_expected.to contain_nftables__rule('default_in-ospf3').with_content('ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto 89 accept') } |
15 |
end
|
16 |
|
17 |
context 'with input interfaces set' do |
18 |
let :params do |
19 |
{ |
20 |
iifname: %w[docker0 eth0], |
21 |
} |
22 |
end
|
23 |
|
24 |
it { is_expected.to compile } |
25 |
|
26 |
str = 'iifname { "docker0", "eth0" } ip6 saddr fe80::/64 ip6 daddr { ff02::5, ff02::6 } meta l4proto 89 accept'
|
27 |
it { is_expected.to contain_nftables__rule('default_in-ospf3').with_content(str) }
|
28 |
end
|
29 |
end
|
30 |
end
|
31 |
end
|