root / spec / classes / rules / out / whois_spec.rb @ 1ef7d5c4
Historique | Voir | Annoter | Télécharger (679 octets)
1 | 2b1896c1 | Tim Meusel | # frozen_string_literal: true
|
---|---|---|---|
2 | |||
3 | require 'spec_helper'
|
||
4 | |||
5 | describe 'nftables::rules::out::whois' do |
||
6 | on_supported_os.each do |os, os_facts|
|
||
7 | context "on #{os}" do |
||
8 | let(:facts) { os_facts }
|
||
9 | |||
10 | context 'default options' do |
||
11 | it { is_expected.to compile.with_all_deps } |
||
12 | it { is_expected.to contain_nftables__rule('default_out-whois').with_content('tcp dport {43, 4321} accept comment "default_out-whois"') } |
||
13 | it { is_expected.to contain_concat__fragment('nftables-inet-filter-chain-default_out-rule-whois') }
|
||
14 | it { is_expected.to contain_concat__fragment('nftables-inet-filter-chain-default_out-rule-whois_header') }
|
||
15 | end
|
||
16 | end
|
||
17 | end
|
||
18 | end |