{"id":13441001,"url":"https://github.com/pytest-dev/pytest-testinfra","last_synced_at":"2026-02-12T21:03:52.257Z","repository":{"id":28761086,"uuid":"32283257","full_name":"pytest-dev/pytest-testinfra","owner":"pytest-dev","description":"Testinfra test your infrastructures","archived":false,"fork":false,"pushed_at":"2025-11-20T20:05:07.000Z","size":1185,"stargazers_count":2453,"open_issues_count":147,"forks_count":361,"subscribers_count":66,"default_branch":"main","last_synced_at":"2026-02-10T06:22:29.425Z","etag":null,"topics":["ansible","chef","devops","devops-tools","docker","infrastructure-as-code","infrastructure-testing","kubernetes","nagios","puppet","pytest-plugin","python","saltstack","tdd","tdd-utilities","testing","testing-tools"],"latest_commit_sha":null,"homepage":"https://testinfra.readthedocs.io","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pytest-dev.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":"CONTRIBUTING.rst","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"liberapay":"philpep"}},"created_at":"2015-03-15T20:49:52.000Z","updated_at":"2026-02-02T17:22:10.000Z","dependencies_parsed_at":"2023-11-13T17:31:09.231Z","dependency_job_id":"5149e9e4-c188-408a-b596-cb745b4fb036","html_url":"https://github.com/pytest-dev/pytest-testinfra","commit_stats":{"total_commits":763,"total_committers":147,"mean_commits":5.190476190476191,"dds":0.327653997378768,"last_synced_commit":"fa48a256eea71f9c389df02ff918e1e856869bc6"},"previous_names":["philpep/testinfra"],"tags_count":90,"template":false,"template_full_name":null,"purl":"pkg:github/pytest-dev/pytest-testinfra","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-testinfra","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-testinfra/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-testinfra/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-testinfra/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pytest-dev","download_url":"https://codeload.github.com/pytest-dev/pytest-testinfra/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pytest-dev%2Fpytest-testinfra/sbom","scorecard":{"id":731724,"data":{"date":"2025-08-11","repo":{"name":"github.com/pytest-dev/pytest-testinfra","commit":"c17794e9d74608c8adcb4c2a8d81fd62c29f53bc"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.8,"checks":[{"name":"Maintained","score":2,"reason":"3 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":4,"reason":"Found 8/19 approved changesets -- score normalized to 4","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/tox.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:9"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/release.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/release.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/tox.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/tox.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/tox.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tox.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/tox.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/tox.yml:73: update your workflow using https://app.stepsecurity.io/secureworkflow/pytest-dev/pytest-testinfra/tox.yml/main?enable=pin","Warn: containerImage not pinned by hash: images/debian_bookworm/Dockerfile:1: pin your Docker image by updating debian:bookworm to debian:bookworm@sha256:731dd1380d6a8d170a695dbeb17fe0eade0e1c29f654cf0a3a07f372191c3f4b","Warn: containerImage not pinned by hash: images/rockylinux9/Dockerfile:1: pin your Docker image by updating rockylinux:9 to rockylinux:9@sha256:d7be1c094cc5845ee815d4632fe377514ee6ebcf8efaed6892889657e5ddaaa6","Warn: pipCommand not pinned by hash: images/debian_bookworm/Dockerfile:65","Warn: pipCommand not pinned by hash: images/debian_bookworm/Dockerfile:66","Warn: pipCommand not pinned by hash: images/debian_bookworm/Dockerfile:69","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/release.yml:29","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:36","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:37","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:58","Warn: pipCommand not pinned by hash: .github/workflows/tox.yml:59","Info:   0 out of   6 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   9 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T14:37:51.644Z","repository_id":28761086,"created_at":"2025-08-22T14:37:51.644Z","updated_at":"2025-08-22T14:37:51.644Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29369469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-12T08:51:36.827Z","status":"ssl_error","status_checked_at":"2026-02-12T08:51:26.849Z","response_time":55,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","chef","devops","devops-tools","docker","infrastructure-as-code","infrastructure-testing","kubernetes","nagios","puppet","pytest-plugin","python","saltstack","tdd","tdd-utilities","testing","testing-tools"],"created_at":"2024-07-31T03:01:28.732Z","updated_at":"2026-02-12T21:03:52.251Z","avatar_url":"https://github.com/pytest-dev.png","language":"Python","readme":"##################################\nTestinfra test your infrastructure\n##################################\n\nLatest documentation: https://testinfra.readthedocs.io/en/latest\n\n.. important::\n\n   **Maintenance Notice**\n\n   This project is currently **not actively maintained**, and responses\n   to issues or pull requests may be delayed for **several months**.\n   Please consider this when using the project and feel free to\n   contribute via pull requests, which will be reviewed as time permits.\n   Thank you for your understanding!\n\nAbout\n=====\n\nWith Testinfra you can write unit tests in Python to test *actual state* of\nyour servers configured by management tools like Salt_, Ansible_, Puppet_,\nChef_ and so on.\n\nTestinfra aims to be a Serverspec_ equivalent in python and is written as\na plugin to the powerful Pytest_ test engine\n\nLicense\n=======\n\n`Apache License 2.0 \u003chttps://github.com/pytest-dev/pytest-testinfra/blob/main/LICENSE\u003e`_\n\nThe logo is licensed under the `Creative Commons NoDerivatives 4.0 License \u003chttps://creativecommons.org/licenses/by-nd/4.0/\u003e`_\nIf you have some other use in mind, contact us.\n\nQuick start\n===========\n\nInstall testinfra using pip::\n\n    $ pip install pytest-testinfra\n\n    # or install the devel version\n    $ pip install 'git+https://github.com/pytest-dev/pytest-testinfra@main#egg=pytest-testinfra'\n\n\nWrite your first tests file to `test_myinfra.py`:\n\n.. code-block:: python\n\n    def test_passwd_file(host):\n        passwd = host.file(\"/etc/passwd\")\n        assert passwd.contains(\"root\")\n        assert passwd.user == \"root\"\n        assert passwd.group == \"root\"\n        assert passwd.mode == 0o644\n\n\n    def test_nginx_is_installed(host):\n        nginx = host.package(\"nginx\")\n        assert nginx.is_installed\n        assert nginx.version.startswith(\"1.2\")\n\n\n    def test_nginx_running_and_enabled(host):\n        nginx = host.service(\"nginx\")\n        assert nginx.is_running\n        assert nginx.is_enabled\n\n\nAnd run it::\n\n    $ pytest -v test_myinfra.py\n\n\n    ====================== test session starts ======================\n    platform linux -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4\n    plugins: testinfra\n    collected 3 items\n\n    test_myinfra.py::test_passwd_file[local] PASSED\n    test_myinfra.py::test_nginx_is_installed[local] PASSED\n    test_myinfra.py::test_nginx_running_and_enabled[local] PASSED\n\n    =================== 3 passed in 0.66 seconds ====================\n\n\n.. _Salt: https://saltstack.com/\n.. _Ansible: https://www.ansible.com/\n.. _Puppet: https://puppetlabs.com/\n.. _Chef: https://www.chef.io/\n.. _Serverspec: https://serverspec.org/\n.. _Pytest: https://pytest.org/\n","funding_links":["https://liberapay.com/philpep"],"categories":["HarmonyOS","Python","Plugins","Testing Tools"],"sub_categories":["Windows Manager"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-testinfra","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-dev%2Fpytest-testinfra","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-dev%2Fpytest-testinfra/lists"}