Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / spec / classes / rules / podman_spec.rb @ 8cdd24a5

Historique | Voir | Annoter | Télécharger (579 octets)

1 08b9f1d0 Steve Traylen
# frozen_string_literal: true
2
3
require 'spec_helper'
4
5
describe 'nftables::rules::podman' 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 }
12
        it { is_expected.to contain_nftables__rule('default_fwd-podman_establised').with_content('ip daddr 10.88.0.0/16 ct state related,established accept') }
13
        it { is_expected.to contain_nftables__rule('default_fwd-podman_accept').with_content('ip saddr 10.88.0.0/16 accept') }
14
      end
15
    end
16
  end
17
end