Projet

Général

Profil

Révision 14156fb6

ID14156fb6df84f2dd83fa5b414e1f48c78a81485f
Parent 1d56f209
Enfant 0f100e5c

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

Add unit test

Voir les différences:

spec/defines/simplerule_spec.rb
146 146
        }
147 147
      end
148 148

  
149
      describe 'only IPv6 TCP traffic' do
150
        let(:params) do
151
          {
152
            dport: 35,
153
            proto: 'tcp6',
154
          }
155
        end
156

  
157
        it { is_expected.to compile }
158
        it {
159
          is_expected.to contain_nftables__rule('default_in-my_default_rule_name').with(
160
            content: 'ip6 version 6 tcp dport {35} accept',
161
          )
162
        }
163
      end
164

  
149 165
      describe 'with an IPv4 CIDR as daddr' do
150 166
        let(:params) do
151 167
          {

Formats disponibles : Unified diff