ansible/test/units/modules
Hans Jerry Illikainen a0b8b85fa5 ufw: add support for interface_in and interface_out (#65382)
* ufw: escalate privileges in integration tests

A few of the integration tests for the UFW module forgot to `become`.
This is problematic if the test suite is executed as a non-privileged
user.  This commit amends that by adding `become` when appropriate.

* ufw: add unit tests for direction and interface

Extend the unit tests for the UFW module to test the `direction` and
`interface` parameters.  This will help in the implementation of a fix
for issue #63903.

* ufw: add support for interface_in and interface_out

The UFW module has support for specifying `direction` and `interface`
for UFW rules.  Rules with these parameters are built such that
per-interface filtering only apply to a single direction based on the
value of `direction`.

Not being able to specify multiple interfaces complicates things for
`routed` rules where one might want to apply filtering only for a
specific combination of `in` and `out` interfaces.

This commit introduces two new parameters to the UFW module:
`interface_in` and `interface_out`.  These rules are mutually exclusive
with the old `direction` and `interface` parameter because of the
ambiguity of having e.g.:

    direction: XXX
    interface: foo
    interface_XXX: bar

Fixes #63903
2019-12-02 08:01:44 +01:00
..
cloud docker_swarm_service: Sort lists when checking for changes (#63887) 2019-11-23 20:31:35 +01:00
crypto Add passphrase support for luks_device (#65050) 2019-11-30 20:50:30 +01:00
files
messaging
monitoring Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
net_tools Bug fixes to the Infoblox NIOS modules (#58521) 2019-09-17 09:45:50 +05:30
network add a new module to configure multicast igmp and enable it. (#63746) 2019-11-26 11:38:30 +00:00
notification
packaging maven_artifact.py - add support for version ranges by using spec (#54309) (#61813) 2019-10-08 15:24:50 +01:00
remote_management OneView: rename _facts -> _info (#61208) 2019-08-27 23:21:40 +02:00
source_control Move gitlab modules to own subdir (#64497) 2019-11-06 12:35:12 +00:00
storage Replace TestCase.assertEquals with TestCase.assertEqual. 2019-11-11 10:24:21 -08:00
system ufw: add support for interface_in and interface_out (#65382) 2019-12-02 08:01:44 +01:00
web_infrastructure
__init__.py
conftest.py fix missing attribs with dirct module execution (#53875) 2019-04-04 09:59:52 -04:00
utils.py Speed up units using time.sleep by mocking or shortening sleep time (#61064) 2019-08-21 16:52:58 -05:00