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