pytest-testinfra
pytest-testinfra copied to clipboard
Replicate most of the ansible style host matching logic
This expands on the ansible pattern matching so you can use multiple parts, intersection, negation, and regex patterns, on top of the already implemented globbing.
~I'd like to backport this change into an 8.2 release if you'll take it.~
I'm happy with the improvements on here, so have un-drafted the PR
What do you think about renaming test_ansible.py
to test_ansible_inventory.py
or similar? That would be more meaningful.