You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
6 years ago
..
cloud docker_swarm_service: Sort lists when checking for changes (#63887) 6 years ago
crypto Add passphrase support for luks_device (#65050) 6 years ago
files Fixes #34893 (#40166) 8 years ago
messaging Rabbitmq user permission fixes (#49404) 7 years ago
monitoring Replace TestCase.assertEquals with TestCase.assertEqual. 6 years ago
net_tools Bug fixes to the Infoblox NIOS modules (#58521) 6 years ago
network add a new module to configure multicast igmp and enable it. (#63746) 6 years ago
notification Add support for hex color in slack module (#49804) 7 years ago
packaging maven_artifact.py - add support for version ranges by using spec (#54309) (#61813) 6 years ago
remote_management OneView: rename _facts -> _info (#61208) 6 years ago
source_control Move gitlab modules to own subdir (#64497) 6 years ago
storage Replace TestCase.assertEquals with TestCase.assertEqual. 6 years ago
system ufw: add support for interface_in and interface_out (#65382) 6 years ago
web_infrastructure Python 3.8 collections compatibility fixes. 7 years ago
__init__.py Some algorithmic unittests for the apt and docker modules 10 years ago
conftest.py fix missing attribs with dirct module execution (#53875) 7 years ago
utils.py Speed up units using time.sleep by mocking or shortening sleep time (#61064) 7 years ago