]>
review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/log
Hunter Haugen [Mon, 8 Jul 2013 23:40:59 +0000 (16:40 -0700)]
Update providers to use expect syntax
The expect syntax is much better than the should syntax and ships with
RSpec 2.14. It caused a few conflicts with the mocha stubbing, so I
updated the docs to use rspec test doubles instead.
Hunter Haugen [Mon, 8 Jul 2013 23:58:26 +0000 (16:58 -0700)]
Merge pull request #218 from hunner/remove_puppet_2.6
Remove travis testing puppet 2.6
Hunter Haugen [Mon, 8 Jul 2013 23:53:43 +0000 (16:53 -0700)]
Remove travis testing puppet 2.6
Dan Carley [Sun, 16 Jun 2013 20:16:37 +0000 (21:16 +0100)]
Exclude tests for Puppet < 3.2 against ruby-head
ruby-head is currently 2.x, which Puppet only began supporting at version
3.2: http://projects.puppetlabs.com/issues/18494
This should make the "allowed failures" builds green once again.
Dan Carley [Sun, 16 Jun 2013 20:14:12 +0000 (21:14 +0100)]
Test against Puppet 3.2
Released last month.
Dan Carley [Sun, 16 Jun 2013 20:03:59 +0000 (21:03 +0100)]
Merge branch 'pr/213'
Fixes #213
Dan Carley [Sun, 16 Jun 2013 19:54:02 +0000 (20:54 +0100)]
[#213] Run puppet-lint as part of CI
Will prevent lint from being violated again in the future.
Dan Carley [Sun, 16 Jun 2013 19:51:43 +0000 (20:51 +0100)]
[#213] Improve manifest documentation
Bad me. I should have written these the first time round.
Wolf Noble [Sun, 16 Jun 2013 18:07:20 +0000 (13:07 -0500)]
Minor fixes to appease puppet-lint
Signed-off-by: Wolf Noble <wolf@wolfspyre.com>
Dan Carley [Fri, 14 Jun 2013 13:08:29 +0000 (06:08 -0700)]
Merge pull request #212 from alphagov/addrtype
Add support for --src-type and --dst-type
Nick Stenning [Fri, 14 Jun 2013 11:48:37 +0000 (12:48 +0100)]
Rename {source,destination}_type to {src,dst}_type
As suggested by @dcarley.
Nick Stenning [Fri, 14 Jun 2013 11:08:38 +0000 (12:08 +0100)]
Add support for --src-type and --dst-type
Add support for filtering by source and destination address types. Supported by
iptables only, this feature allows filtering packets by the address type (such
as whether the packet came from a local address, a broadcast address, a
multicast address, etc).
Adds the `:address_type` feature to allow a provider to declare support for
filtering on the basis of address type.
Dan Carley [Thu, 13 Jun 2013 20:25:13 +0000 (21:25 +0100)]
Merge pull request #200 from ChrisRut/fixburst
Dan Carley [Thu, 13 Jun 2013 20:10:04 +0000 (21:10 +0100)]
[#200] Add tests for --limit-burst
Both explicit (when a `:burst` parameter or `--limit-burst` argument is
present) and implicit (when neither are specified but `:limit` or `--limit`
are present and the default burst is `5`).
Chris Rutter [Tue, 11 Jun 2013 15:34:50 +0000 (11:34 -0400)]
fix for default burst value of 5
fixes #200
Ken Barber [Mon, 10 Jun 2013 12:55:06 +0000 (05:55 -0700)]
Merge pull request #204 from georgkoester/fix188
Fix #188: -f in comment leads to puppet resource firewall failing.
Ken Barber [Mon, 10 Jun 2013 10:24:52 +0000 (11:24 +0100)]
Fix minor test bug for latest puppet
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 10 Jun 2013 09:41:34 +0000 (10:41 +0100)]
Release 0.3.1
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 10 Jun 2013 09:29:05 +0000 (02:29 -0700)]
Merge pull request #209 from kbarber/rspec-system-puppet-2
Update tests for rspec-system-puppet 2
Ken Barber [Mon, 10 Jun 2013 08:35:34 +0000 (09:35 +0100)]
Update tests for rspec-system-puppet 2
This changes all the tests to be not only compatible with rspec-system-puppet
2, but to use some of the new syntactic sugar it provides.
Signed-off-by: Ken Barber <ken@bob.sh>
Georg Koester [Sat, 8 Jun 2013 15:15:37 +0000 (08:15 -0700)]
Fix #188: -f in comment leads to puppet resource firewall failing.
Ken Barber [Wed, 5 Jun 2013 02:09:10 +0000 (19:09 -0700)]
Merge pull request #199 from kbarber/rspec-system-15
Update rspec-system tests for rspec-system-puppet 1.5
Ken Barber [Wed, 5 Jun 2013 01:52:06 +0000 (02:52 +0100)]
Update rspec-system tests for rspec-system-puppet 1.5
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 3 Jun 2013 14:05:36 +0000 (07:05 -0700)]
Merge pull request #197 from kbarber/hasstatus
Ensure all services have 'hasstatus => true' for Puppet 2.6
Ken Barber [Mon, 3 Jun 2013 13:32:31 +0000 (06:32 -0700)]
Merge pull request #192 from joejulian/116/pre-existing_rules_name_fix
Accept pre-existing rule with invalid name
Ken Barber [Mon, 3 Jun 2013 13:22:53 +0000 (14:22 +0100)]
Ensure all services have 'hasstatus => true' for Puppet 2.6
We were getting reports of idempotency issues with 2.6, due to missing
hasstatus setting.
Signed-off-by: Ken Barber <ken@bob.sh>
Joe Julian [Fri, 31 May 2013 01:59:23 +0000 (18:59 -0700)]
Fixed dumb logic error
Joe Julian [Thu, 30 May 2013 03:42:29 +0000 (20:42 -0700)]
Accept pre-existing rule with invalid name
This patch fixes up a pre-existing rule whose name does not
type-validate with a valid name (typically one without a numeric
prefix in the comment).
Fixes #116
Signed-off-by: Joe Julian <me@joejulian.name>
Ken Barber [Tue, 28 May 2013 21:12:31 +0000 (14:12 -0700)]
Merge pull request #191 from joejulian/log_level-in-wrong-order
Swap log_prefix and log_level order to match the way it's saved
Joe Julian [Tue, 28 May 2013 20:47:33 +0000 (13:47 -0700)]
Swap log_prefix and log_level order to match the way it's saved
Fixes #184
Signed-off-by: Joe Julian <me@joejulian.name>
Ken Barber [Tue, 28 May 2013 15:18:20 +0000 (08:18 -0700)]
Merge pull request #189 from joejulian/ticket/20912-split_arguments_while_maintaining_quoted_strings
(#20912) Split argments while maintaining quoted strings
Ken Barber [Tue, 28 May 2013 14:47:24 +0000 (15:47 +0100)]
Fix log test to replicate bug #182
Signed-off-by: Ken Barber <ken@bob.sh>
Joe Julian [Sat, 25 May 2013 00:47:53 +0000 (17:47 -0700)]
Accidentally deleted the conversion to -D
Joe Julian [Fri, 24 May 2013 23:38:04 +0000 (16:38 -0700)]
(#20912) Split argments while maintaining quoted strings
Github Bug: 182
Signed-off-by: Joe Julian <me@joejulian.name> (signed CLA)
Ken Barber [Thu, 23 May 2013 13:56:15 +0000 (06:56 -0700)]
Merge pull request #187 from kbarber/log_changed_name
Add more log param tests
Ken Barber [Thu, 23 May 2013 02:05:31 +0000 (03:05 +0100)]
Add more log param tests
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 23 May 2013 00:49:18 +0000 (17:49 -0700)]
Merge pull request #186 from kbarber/log_level
Add extra tests for logging parameters
Ken Barber [Thu, 23 May 2013 00:32:03 +0000 (01:32 +0100)]
Add extra tests for logging parameters
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 25 Apr 2013 21:51:23 +0000 (22:51 +0100)]
Clarify OS support
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 25 Apr 2013 21:30:11 +0000 (14:30 -0700)]
Merge pull request #174 from cr3/0.3.0
Release 0.3.0
Marc Tardif [Thu, 25 Apr 2013 15:25:20 +0000 (11:25 -0400)]
Release 0.3.0
Ken Barber [Wed, 24 Apr 2013 22:40:06 +0000 (15:40 -0700)]
Merge pull request #173 from kbarber/171
Ensure parameter for firewall class
Ken Barber [Wed, 24 Apr 2013 22:40:06 +0000 (15:40 -0700)]
Merge pull request #173 from kbarber/171
Ensure parameter for firewall class
Ken Barber [Wed, 24 Apr 2013 22:18:25 +0000 (23:18 +0100)]
Document ensure class parameter
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Wed, 24 Apr 2013 22:01:15 +0000 (23:01 +0100)]
A patch for Debian 6 for enable => true has a bug
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Wed, 24 Apr 2013 21:13:48 +0000 (22:13 +0100)]
Add system tests for ensure parameter
Signed-off-by: Ken Barber <ken@bob.sh>
Marc Tardif [Wed, 24 Apr 2013 18:46:26 +0000 (14:46 -0400)]
(#171) Added ensure parameter to firewall class
This change adds the ensure parameter to the firewall class so that
the appropriate iptables service for the operating system can be
stopped. The reason for this change is to extend the class so that
it is not just limited to running the service.
The change to the manifests still made all the rspec tests pass,
so it should not introduce any regressions. More rspec tests were
also added to exercise the new code paths introduced.
This pull request fixes issue #171.
Ken Barber [Sun, 21 Apr 2013 20:57:58 +0000 (21:57 +0100)]
Bump rspec-system-puppet revision
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 15 Apr 2013 02:24:21 +0000 (19:24 -0700)]
Merge pull request #167 from kbarber/socket_params_test
Socket params test
Ken Barber [Mon, 15 Apr 2013 01:33:17 +0000 (02:33 +0100)]
Socket params test
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 15 Apr 2013 01:24:06 +0000 (18:24 -0700)]
Merge pull request #166 from kbarber/duplicate_existing_rules_dont_purge
Duplicate existing rules dont purge
Ken Barber [Sat, 13 Apr 2013 23:58:24 +0000 (00:58 +0100)]
Add counter to a base number for order gen
Signed-off-by: Ken Barber <ken@bob.sh>
Anastasis Andronidis [Thu, 26 Jul 2012 12:24:21 +0000 (14:24 +0200)]
(#15702) firewall duplicated rules are not removed
This fix makes sure that every rule has a different name so same rules
get deleted.
Ken Barber [Sat, 13 Apr 2013 23:30:48 +0000 (00:30 +0100)]
Add test to make sure duplicate existing rules get purged
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 15 Apr 2013 00:05:11 +0000 (01:05 +0100)]
Make param test pending due to rhel5 failures
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sat, 13 Apr 2013 22:53:06 +0000 (23:53 +0100)]
Merge branch 'rspec_colour_in_jenkins'
* rspec_colour_in_jenkins:
Fix rspec colour in jenkins
Ken Barber [Sat, 13 Apr 2013 22:48:30 +0000 (23:48 +0100)]
Fix rspec colour in jenkins
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sat, 13 Apr 2013 22:41:27 +0000 (15:41 -0700)]
Merge pull request #162 from kbarber/booleans_not_idempotent
Booleans not idempotent
Georg Koester [Thu, 11 Apr 2013 16:46:07 +0000 (09:46 -0700)]
Fix boolean rules being always recognized as changed.
String and boolean types were compared.
Had to adapt the tests which checked for booleans, when in
reality strings where present.
Ken Barber [Sat, 13 Apr 2013 22:08:20 +0000 (23:08 +0100)]
Add system tests for socket property
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sat, 13 Apr 2013 20:39:06 +0000 (21:39 +0100)]
Merge branch 'add_isfragment_option2'
* add_isfragment_option2:
Add match rule for fragments.
Georg Koester [Wed, 10 Apr 2013 12:47:56 +0000 (05:47 -0700)]
Add match rule for fragments.
Via isfragment true/false property, toggles '-f'.
Same implementation as socket property, same bug
where the property is always recognized as changed.
Ken Barber [Sat, 13 Apr 2013 20:06:46 +0000 (13:06 -0700)]
Merge pull request #145 from ecbypi/ticket/20096-fedora-systemd-support
(20096) Support systemd on Fedora 15 and up
Ken Barber [Sat, 13 Apr 2013 19:40:18 +0000 (12:40 -0700)]
Merge pull request #161 from kbarber/standard_run_tests
Add tests for the recommended setup
Ken Barber [Sat, 13 Apr 2013 19:00:43 +0000 (20:00 +0100)]
Add tests for the recommended setup
Using the documented recommended setup, we test if it works with no error and
test if it is idempotent by running it again, looking for resource changes.
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sat, 13 Apr 2013 17:17:34 +0000 (10:17 -0700)]
Merge pull request #160 from kbarber/more_rspec_tests
Add more system tests: class testing in particular
Ken Barber [Sat, 13 Apr 2013 16:27:00 +0000 (17:27 +0100)]
Add more system tests: class testing in particular
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Fri, 12 Apr 2013 14:58:49 +0000 (15:58 +0100)]
Merge branch 'absolute_path_to_iptables_for_tests'
* absolute_path_to_iptables_for_tests:
Add an absolute path to iptables to make system tests pass
Ken Barber [Fri, 12 Apr 2013 14:32:32 +0000 (15:32 +0100)]
Add an absolute path to iptables to make system tests pass
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Fri, 12 Apr 2013 12:48:56 +0000 (13:48 +0100)]
Merge branch '20125'
* 20125:
(#20125) Add persistence support for Archlinux platform
(#20125) Use PATH to find (ip|ip6|eb)tables for chain provider
(#20125) Use PATH to find (ip|ip6)tables for (ip|ip6)tables provider
(#20125) Add archlinux firewall class and unit test
Ingmar Steen [Mon, 8 Apr 2013 12:38:27 +0000 (14:38 +0200)]
(#20125) Add persistence support for Archlinux platform
This only works with facter 1.7.0-rc1 and up because os_key isn't
properly defined in facter 1.6.18 on Archlinux (it's set to Linux).
Ingmar Steen [Mon, 8 Apr 2013 12:32:02 +0000 (14:32 +0200)]
(#20125) Use PATH to find (ip|ip6|eb)tables for chain provider
Ingmar Steen [Mon, 8 Apr 2013 12:29:05 +0000 (14:29 +0200)]
(#20125) Use PATH to find (ip|ip6)tables for (ip|ip6)tables provider
Ingmar Steen [Mon, 8 Apr 2013 09:32:13 +0000 (11:32 +0200)]
(#20125) Add archlinux firewall class and unit test
Ken Barber [Fri, 12 Apr 2013 12:07:01 +0000 (05:07 -0700)]
Merge pull request #155 from bobtfish/error_reporting_fix
Error reporting fix
Tomas Doran [Thu, 11 Apr 2013 22:19:42 +0000 (23:19 +0100)]
Update to also be for destination
Ken Barber [Thu, 11 Apr 2013 13:53:49 +0000 (14:53 +0100)]
Fix for rspec-system-puppet 0.3.x
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 11 Apr 2013 03:50:05 +0000 (04:50 +0100)]
Use rspec-system-puppet 0.3.0
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 11 Apr 2013 00:45:20 +0000 (01:45 +0100)]
Support for new prefabs from rspec-system
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Wed, 10 Apr 2013 12:44:38 +0000 (13:44 +0100)]
Get rid of examples it isn't being maintained and it belongs in docs
I think the expectation that people should drop to looking at code for examples
is wrong anyway, we should express examples through documentation if we can.
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sat, 6 Apr 2013 02:30:16 +0000 (03:30 +0100)]
Merge branch 'rspec-system-puppet'
* rspec-system-puppet:
Moved some of the puppet setup stuff in system tests to rspec-system-puppet
Ken Barber [Sat, 6 Apr 2013 02:29:15 +0000 (03:29 +0100)]
Moved some of the puppet setup stuff in system tests to rspec-system-puppet
Signed-off-by: Ken Barber <ken@bob.sh>
Eduardo Gutierrez [Fri, 5 Apr 2013 01:18:46 +0000 (21:18 -0400)]
(20096) Support systemd on Fedora 15 and up
Add a check to see if running Fedora 15 in order to use init scripts
provided by systemd. This adds compatibility for systemd on Fedora,
which currently returns an incorrect failure message when persisting
rules.
Ken Barber [Mon, 1 Apr 2013 02:54:10 +0000 (03:54 +0100)]
Use latest rspec-system gem
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sat, 30 Mar 2013 22:15:38 +0000 (22:15 +0000)]
Merge branch 'rspec-system'
* rspec-system:
Initial start on rspec-system tests
Ken Barber [Fri, 29 Mar 2013 20:35:04 +0000 (20:35 +0000)]
Initial start on rspec-system tests
This patch includes system tests using rspec-system. You can try these out
with:
rake spec:system
Consult the docs in the README.md for details on how to run tests on
different OS variants.
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 14 Mar 2013 05:04:47 +0000 (22:04 -0700)]
Merge branch 'ticket/master/release_021'
* ticket/master/release_021:
Release 0.2.1
Ken Barber [Thu, 14 Mar 2013 05:04:32 +0000 (22:04 -0700)]
Release 0.2.1
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Thu, 14 Mar 2013 04:24:16 +0000 (21:24 -0700)]
Merge branch 'maint/master/fix_spec_failures'
* maint/master/fix_spec_failures:
Fix failing spec tests, due to dpkg change in iptables_persistent_version_spec
Ken Barber [Thu, 14 Mar 2013 04:19:20 +0000 (21:19 -0700)]
Fix failing spec tests, due to dpkg change in iptables_persistent_version_spec
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Wed, 6 Mar 2013 00:48:46 +0000 (16:48 -0800)]
Merge pull request #140 from laurenrother/readme_cleanup
Update README to be consistent with module documentation template
Lauren Rother [Tue, 5 Mar 2013 00:02:08 +0000 (16:02 -0800)]
Update README to be consistent with module documentation template
Dan Carley [Mon, 4 Mar 2013 08:08:51 +0000 (08:08 +0000)]
(GH-139) Throw away STDERR from dpkg-query in Fact
Newer versions of dpkg-query, as of Ubuntu 12.10, will make noise on STDERR
if the queried package isn't currently installed. Facter's `exec()` outputs
this without giving us a chance to catch it.
Pipe STDERR to `/dev/null` so that it's not seen by the end-user. STDOUT
will still be `nil` if the package isn't installed. It doesn't seem
reasonable to spec test for this without reaching deep into Facter, so I'm
not going to.
Ken Barber [Mon, 4 Mar 2013 06:19:47 +0000 (22:19 -0800)]
Fix links to forge and github issues in README
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Mon, 4 Mar 2013 06:10:16 +0000 (22:10 -0800)]
Merge branch 'ticket/master/release_020'
* ticket/master/release_020:
Release 0.2.0
Ken Barber [Mon, 4 Mar 2013 05:06:13 +0000 (21:06 -0800)]
Release 0.2.0
Signed-off-by: Ken Barber <ken@bob.sh>
Ken Barber [Sun, 3 Mar 2013 21:00:42 +0000 (13:00 -0800)]
Merge pull request #137 from dcarley/persist_iptables_tests
Tests for #persist_iptables
Ken Barber [Sun, 3 Mar 2013 21:00:16 +0000 (13:00 -0800)]
Merge pull request #138 from dcarley/129-autoreq_bad_return
(GH-129) Replace errant return in autoreq block
Dan Carley [Sun, 3 Mar 2013 14:32:38 +0000 (14:32 +0000)]
(GH-129) Replace errant return in autoreq block
It's not valid to use `return` within a block. We could use `next []`,
however it's probably better form to just always return the array, whether
it's populated or not. This will stop the error:
err: Got an uncaught exception of type LocalJumpError: unexpected return
When one of the listed providers isn't selected. Which is suitable, because
this autorequire won't be suitable to any other future providers anyway.
Dan Carley [Sat, 2 Mar 2013 18:30:12 +0000 (18:30 +0000)]
Tests for #persist_iptables
Basic coverage of protocol and OS detection. Including older and newer
Debian versions. Nearly all based on expectations since there aren't any
return values.