pytest-testinfra
pytest-testinfra copied to clipboard
Add a firewalld module
Hi @philpep,
We are extensively using TestInfra to test Ansible roles. However, we are using command
to test firewalld
rules/services running command("firewall-cmd ...")
. So, I'd like to see a module that is just to read firewall-cmd
. Do you this is feasible, or finding another way is to be the advice?
Hi, sure, feel free to implement this. It might be better to write here what API interface you'd expect for such module before implementing it.
Hi, sure, feel free to implement this. It might be better to write here what API interface you'd expect for such module before implementing it.
Hey, thanks @philpep. I don't have enough time for this feature right now--even in this pandemic... I can take a look at this later on.
Stay safe,
I left a rather rudimentary start at https://github.com/atombrella/testinfra/pull/new/firewalld
Feel free to give input to what data that could be nice to be able to extract. As firewalld is a wrapper for iptables, is there something that iptables.rules
is unable to show?