Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added integration tests with molecule testinfra #86

Merged
merged 29 commits into from
Nov 15, 2021

Conversation

mkayontour
Copy link
Member

Added integration tests with testinfra. In the folder molecule there are tests/integration with testinfra scripts.

It's simple to use just define the modules in a def and write the assert statements.
https://testinfra.readthedocs.io/en/latest/modules.html
https://testinfra.readthedocs.io/en/latest/

Example:

def test_icinga2_service(host):
    service = host.service("icinga2")
    assert service.is_running
    assert service.is_enabled

Every python script in this directory will be used and verified.

@cla-bot cla-bot bot added the cla/signed label Nov 11, 2021
@mkayontour mkayontour self-assigned this Nov 15, 2021
@mkayontour mkayontour added this to the v0.1.0 milestone Nov 15, 2021
@mkayontour mkayontour merged commit 60acb3d into main Nov 15, 2021
@mkayontour mkayontour deleted the enhancement/32-add-integration-tests branch August 22, 2022 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant