Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Sherlock | 43,599 | 2 days ago | 2 | February 25, 2019 | 157 | mit | Python | |||
🔎 Hunt down social media accounts by username across social networks | ||||||||||
Kind | 12,034 | 402 | 7 days ago | 171 | June 15, 2023 | 179 | apache-2.0 | Go | ||
Kubernetes IN Docker - local clusters for testing Kubernetes | ||||||||||
Gitignore.io | 7,755 | a month ago | 8 | mit | Swift | |||||
Create useful .gitignore files for your project | ||||||||||
Testcontainers Java | 7,364 | 431 | 650 | 2 days ago | 85 | May 31, 2023 | 471 | mit | Java | |
Testcontainers is a Java library that supports JUnit tests, providing lightweight, throwaway instances of common databases, Selenium web browsers, or anything else that can run in a Docker container. | ||||||||||
Frameworkbenchmarks | 7,118 | 2 days ago | 128 | other | Java | |||||
Source for the TechEmpower Framework Benchmarks project | ||||||||||
Terratest | 7,106 | 189 | 5 days ago | 405 | July 26, 2023 | 232 | apache-2.0 | Go | ||
Terratest is a Go library that makes it easier to write automated tests for your infrastructure code. | ||||||||||
Goss | 5,271 | 4 | 3 | 11 days ago | 66 | July 21, 2023 | 29 | apache-2.0 | Go | |
Quick and Easy server testing/validation | ||||||||||
Node Express Mongoose Demo | 5,085 | 3 | 10 days ago | 1 | January 18, 2016 | 3 | mit | JavaScript | ||
A simple demo app using node and mongodb for beginners (with docker) | ||||||||||
Boulder | 4,769 | 269 | 2 days ago | 76 | April 24, 2021 | 206 | mpl-2.0 | Go | ||
An ACME-based certificate authority, written in Go. | ||||||||||
Maildev | 4,391 | 54 | 28 | 5 days ago | 45 | July 20, 2023 | 111 | other | SCSS | |
:mailbox: SMTP Server + Web Interface for viewing and testing emails during development. |
Latest documentation: https://testinfra.readthedocs.io/en/latest
With Testinfra you can write unit tests in Python to test 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
The logo is licensed under the Creative Commons NoDerivatives 4.0 License If you have some other use in mind, contact us.
Install testinfra using pip:
$ pip install pytest-testinfra # or install the devel version $ pip install 'git+https://github.com/pytest-dev/pytest-testinfra@main#egg=pytest-testinfra'
Write your first tests file to test_myinfra.py:
def test_passwd_file(host):
passwd = host.file("/etc/passwd")
assert passwd.contains("root")
assert passwd.user == "root"
assert passwd.group == "root"
assert passwd.mode == 0o644
def test_nginx_is_installed(host):
nginx = host.package("nginx")
assert nginx.is_installed
assert nginx.version.startswith("1.2")
def test_nginx_running_and_enabled(host):
nginx = host.service("nginx")
assert nginx.is_running
assert nginx.is_enabled
And run it:
$ py.test -v test_myinfra.py ====================== test session starts ====================== platform linux -- Python 2.7.3 -- py-1.4.26 -- pytest-2.6.4 plugins: testinfra collected 3 items test_myinfra.py::test_passwd_file[local] PASSED test_myinfra.py::test_nginx_is_installed[local] PASSED test_myinfra.py::test_nginx_running_and_enabled[local] PASSED =================== 3 passed in 0.66 seconds ====================