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

Testinfra test your infrastructures

Results 164 pytest-testinfra issues
Sort by recently updated
recently updated
newest added

when i am trying to retrieve the variable list for a specific hostname from a specific ansible inventory using get_host method it works fine like this. import testinfra test_host1 =...

Hello! First of all thanks for the great tool, it's amazing! When I was firstly trying to implement it I tried some docker images available including the official one, I...

Hi there, I am using: ``` $ cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) $ pip freeze ansible==2.7.2 asn1crypto==0.24.0 atomicwrites==1.2.1 attrs==18.2.0 bcrypt==3.1.4 cffi==1.11.5 cryptography==2.4.1 enum34==1.1.6 funcsigs==1.0.2 idna==2.7 importlib==1.0.4 ipaddress==1.0.22 Jinja2==2.10...

bug

Hi! I use TestInfra through molecule to test my ansible roles. I need sometimes to have a different user and different config that are present in ansible.cfg. For now I...

bug

Hi all, I am trying to figure out how to use the templates via testinfra via ansible backend, and the documentation is lacking on this very specific kind of thing....

enhancement
question

I would like to be able to use testinfra classes (Specifically `Package` and `CommandResults`) in type annotations. ```python def my_function(pkg_names: List[str]) -> List[testinfra.modules.base.Package]: # function code that returns a list...

question

**Description** If a user enables output of JUnitXML when using testinfra, intermittently the "system-out" and "system-err" elements will get repeated with the same exact information. We're not sure exactly where...

I'd be nice to have bidirectionnal intégration between socket and process modules. * which process opened this socket ? * which sockets open this process ? For instance: ``` >>>...

enhancement

Hi Before deciding which Infrastructure test framework to use, I looked at what Inspec, Goss, and Testinfra had to offer. And I liked Testinfra the most for my use case....

For instance: ``` python -m pytest --connection=kitchen # would tests all kitchen defined hosts using ssh python -m pytest --host=kitchen://default-debian-9 # would only test default-debian-9 ``` Connection details (ssh host,...