{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"},{"label":"Systems Administration","url":"https://skillfed.io/packages/category/system-systems-administration"}],"enrichment":{"capability":"Testinfra lets you write Python unit tests that verify the actual state of servers\u2014checking files, packages, services, and system configuration\u2014as a pytest plugin.","skillfed_tags":["infrastructure-testing","pytest-plugin","server-validation"],"use_cases":["Verify that Ansible or Puppet playbooks correctly configured servers after deployment.","Test that required packages are installed and services are running on production systems.","Check file permissions, ownership, and content match infrastructure requirements.","Validate system configuration (users, groups, network settings) in automated pipelines.","Ensure compliance with security baselines by asserting expected system state."],"what_it_does":"Testinfra is a pytest plugin that lets you write Python unit tests to verify the actual state of servers and infrastructure. Instead of testing code in isolation, you write assertions about real system state\u2014whether files exist with the right permissions, packages are installed, services are running, and configuration is correct. It's designed as a Python equivalent to Serverspec and works with infrastructure-as-code tools like Ansible, Puppet, Chef, and Salt.\n\nYou write tests using a `host` fixture that provides methods to inspect files, packages, services, users, and other system resources. Tests run through pytest, so you get all the standard pytest features and reporting. The project is currently not actively maintained, with the latest release over 5 years old and a maintenance notice warning that responses to issues may be delayed for several months.","worth_installing":"Yes, if you need to test infrastructure state and can accept the maintenance risk. The package is stable and has no known vulnerabilities, but the lack of active maintenance means you may need to fork or patch it yourself if issues arise. It's well-suited for teams already using pytest and infrastructure-as-code tools, but consider whether a maintained alternative better fits your long-term needs."},"id":"testinfra","links":{"html":"https://skillfed.io/packages/testinfra","md":"https://skillfed.io/packages/testinfra.md","pypi":"https://pypi.org/project/testinfra/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2020-11-12","license_spdx":null,"license_treatment":"permissive","name":"testinfra","python_support":"supports_current","summary":"Test infrastructures"},"popularity":{"monthly_downloads":141218,"position":11245,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"6.0.0"}
