Skip to main content

Fixtures for testinfra and molecule

Project description

About

With the Pytest plugin Testinfra you can write unit tests in Python to test your servers configured by the management tool Ansible. Testinfra is the default verifier of Molecule testing environment.

The Pytest plugin Testaid provides helper functions and fixtures to facilitate the use of Testinfra. It helps to not only unit test your Ansible roles but to integration and system test your whole Ansible project.

License

Apache License 2.0

Quick start

Install the testaid plugin using pip:

$ pip install testaid

Tests

Run molecule test by invoking tox:

$ tox

Examples

Have a look at test/debian for a complete molecule example using ansible, testinfra and testaid.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testaid-0.2.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

testaid-0.2-py3-none-any.whl (8.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page