Projet

Général

Profil

Révision 82d10659

ID82d10659efff97e205964f157381254c6558bd24
Parent bd549474
Enfant 7395300c

Ajouté par Nacho Barrientos il y a plus de 4 ans

Allow disabling default NAT tables and chains

Voir les différences:

spec/classes/ip_nat_spec.rb
234 234
          )
235 235
        }
236 236
      end
237

  
238
      context 'all nat tables disabled' do
239
        let(:params) do
240
          {
241
            'nat' => false,
242
          }
243
        end
244

  
245
        it { is_expected.not_to contain_class('nftables::ip_nat') }
246
        it { is_expected.not_to contain_nftables__config('ip-nat') }
247
        it { is_expected.not_to contain_nftables__config('ip6-nat') }
248
        it { is_expected.not_to contain_nftables__chain('PREROUTING') }
249
        it { is_expected.not_to contain_nftables__chain('POSTROUTING') }
250
        it { is_expected.not_to contain_nftables__chain('PREROUTING6') }
251
        it { is_expected.not_to contain_nftables__chain('POSTROUTING6') }
252
      end
237 253
    end
238 254
  end
239 255
end

Formats disponibles : Unified diff