Projet

Général

Profil

Révision 92e0fcb6

ID92e0fcb6d4afb8d771e401cf050dc5c4da836f48
Parent 942569ea
Enfant 05c7f19d

Ajouté par duritong il y a environ 4 ans

fix #74 - ensure table are initialized before flushing them (#75)

Voir les différences:

spec/classes/nftables_spec.rb
192 192

  
193 193
          it {
194 194
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
195
              with_content(%r{^table inet abc \{\}$})
196
          }
197
          it {
198
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
195 199
              with_content(%r{^flush table inet abc$})
196 200
          }
197 201
        end
......
202 206

  
203 207
          it {
204 208
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
205
              with_content(%r{^flush table inet abc; flush table inet ijk$})
209
              with_content(%r{^table inet abc \{\}$})
210
          }
211
          it {
212
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
213
              with_content(%r{^flush table inet abc$})
214
          }
215
          it {
216
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
217
              with_content(%r{^table inet ijk \{\}$})
218
          }
219
          it {
220
            is_expected.to contain_file('/etc/nftables/puppet-preflight.nft').
221
              with_content(%r{^flush table inet ijk$})
206 222
          }
207 223
        end
208 224
      end

Formats disponibles : Unified diff