root / spec / defines / rules / dnat4_spec.rb @ fcb79d73
Historique | Voir | Annoter | Télécharger (488 octets)
1 | 94a80621 | Steve Traylen | require 'spec_helper'
|
---|---|---|---|
2 | |||
3 | describe 'nftables::rules::dnat4' do |
||
4 | let(:title) { 'foobar' } |
||
5 | fcb79d73 | Ben Morrice | let(:pre_condition) { 'include nftables' } |
6 | 94a80621 | Steve Traylen | |
7 | on_supported_os.each do |os, facts|
|
||
8 | context "on #{os}" do |
||
9 | let(:facts) do |
||
10 | facts |
||
11 | end
|
||
12 | |||
13 | context 'with minumum parameters' do |
||
14 | let(:params) do |
||
15 | { |
||
16 | daddr: '127.127.127.127', |
||
17 | port: 100, |
||
18 | } |
||
19 | end
|
||
20 | |||
21 | it { is_expected.to compile.with_all_deps } |
||
22 | end
|
||
23 | end
|
||
24 | end
|
||
25 | end |