pytest-testinfra icon indicating copy to clipboard operation
pytest-testinfra copied to clipboard

Replicate most of the ansible style host matching logic

Open Code0x58 opened this issue 1 year ago • 2 comments

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.~

Code0x58 avatar Jan 21 '24 21:01 Code0x58

I'm happy with the improvements on here, so have un-drafted the PR

Code0x58 avatar May 15 '24 07:05 Code0x58

What do you think about renaming test_ansible.py to test_ansible_inventory.py or similar? That would be more meaningful.

CarstenGrohmann avatar Jun 03 '24 11:06 CarstenGrohmann