Projet

Général

Profil

Révision c00bcf2d

IDc00bcf2d8eb424abbba3afb71888eb114d5fb0f8
Parent 3016d428
Enfant 3f278f1c

Ajouté par canihavethisone il y a 10 mois

Changed path to use fact. Partial conversion of execs to arrays

Voir les différences:

spec/classes/nftables_spec.rb
321 321
        it { is_expected.not_to contain_file('/foo/bar') }
322 322
        it {
323 323
          is_expected.to contain_exec('nftables_memory_state_check').with(
324
            command: %r{^echo "reloading nftables"$},
324
            command: ["echo", "reloading_nftables"],
325 325
            notify: 'Service[nftables]',
326
            unless: %r{^/usr/bin/test -s /foo/bar -a "\$\(nft -s list ruleset \| sha1sum\)" = "\$\(cat /foo/bar\)"$}
326
            unless: ["test -s /foo/bar -a \"$(nft -s list ruleset | sha1sum)\" = \"$(cat /foo/bar)\""]
327 327
          )
328 328
        }
329 329
        it {

Formats disponibles : Unified diff