With Testinfra you can write unit tests in Python to test the actual state of your servers configured by management tools like Salt, Ansible, Puppet, Chef and so on. Testinfra aims to be a Serverspec equivalent in python and is written as a plugin to the powerful Pytest test engine. By default Testinfra launches tests on the local machines, but you can also test remotes systems using paramiko. If you have a lot of tests, you can use the pytest-xdist plugin to run tests using multiple processes. When installing, you should select the backends you require as extras to ensure Python dependencies are satisfied (note various system packaged tools may still be required). This is the default backend when a hosts list is provided. Paramiko is a Python implementation of the SSHv2 protocol. Testinfra will not ask you for a password, so you must be able to connect without a password (using passwordless keys or using ssh-agent).

Features

  • Parametrize your tests
  • Integration with Vagrant
  • Integration with Jenkins
  • Test Docker images
  • Integration with KitchenCI
  • Integration with Nagios

Project Samples

Project Activity

See All Activity >

Categories

Software Testing

License

Apache License V2.0

Follow Testinfra

Testinfra Web Site

Other Useful Business Software
Auth0 for AI Agents now in GA Icon
Auth0 for AI Agents now in GA

Ready to implement AI with confidence (without sacrificing security)?

Connect your AI agents to apps and data more securely, give users control over the actions AI agents can perform and the data they can access, and enable human confirmation for critical agent actions.
Start building today
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Testinfra!

Additional Project Details

Programming Language

Python

Related Categories

Python Software Testing Tool

Registered

2022-03-10