root / spec / classes / rules / ceph_mon_spec.rb @ fcb79d73
Historique | Voir | Annoter | Télécharger (736 octets)
1 | f4e9e995 | Dan van der Ster | require 'spec_helper'
|
---|---|---|---|
2 | |||
3 | describe 'nftables::rules::ceph_mon' do |
||
4 | on_supported_os.each do |os, os_facts|
|
||
5 | context "on #{os}" do |
||
6 | let(:facts) { os_facts }
|
||
7 | |||
8 | context 'default options' do |
||
9 | it { is_expected.to compile } |
||
10 | it { is_expected.to contain_nftables__rule('default_in-ceph_mon').with_content('tcp dport {3300, 6789} accept comment "Accept Ceph MON"') } |
||
11 | end
|
||
12 | |||
13 | context 'with ports set' do |
||
14 | let(:params) do |
||
15 | { |
||
16 | ports: [3300, 6790], |
||
17 | } |
||
18 | end
|
||
19 | |||
20 | it { is_expected.to compile } |
||
21 | it { is_expected.to contain_nftables__rule('default_in-ceph_mon').with_content('tcp dport {3300, 6790} accept comment "Accept Ceph MON"') } |
||
22 | end
|
||
23 | end
|
||
24 | end
|
||
25 | end |