]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commit
(#14755) Stub iptables_version for now so tests run on non-Linux hosts
authorKen Barber <ken@bob.sh>
Wed, 20 Jun 2012 17:26:05 +0000 (18:26 +0100)
committerKen Barber <ken@bob.sh>
Wed, 20 Jun 2012 17:34:55 +0000 (18:34 +0100)
commit8327e6bc3991d179bc4430dea4dca1bbe11a5998
treeaeb8e11bb2424247b161c3c98e33b67f3c4676ca
parentff2e35584d6b5565dc80e41d8bb436a2c09a7251
(#14755) Stub iptables_version for now so tests run on non-Linux hosts

Without a stub some tests fail on non-Linux hosts. This is because they are
expecting a particular version of iptables to exist which isn't always true.

The right answer for the provider is to actually allow the fact to be set
per test, but for now we are doing a global override just to make tests pass.
spec/unit/puppet/provider/iptables_spec.rb
spec/unit/puppet/type/firewall_spec.rb