Skip to content

opendevstack/ansible-playtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AnsiblePlayTest

A flexible and extensible framework for testing Ansible playbooks using scenario-based approaches.

Features

  • Scenario-based testing: Define test scenarios in YAML files
  • Service mocking: Mock external services that your playbooks interact with
  • Verification strategies: Verify module calls, parameters, call sequences, and errors
  • SMTP server mock: Built-in mock SMTP server for testing email notifications
  • Advanced test classes: Enhanced test classes with additional capabilities
  • Parameterized tests: Run the same test with different parameters
  • Fluent API: Build complex scenarios programmatically

Installation

pip install ansible-playtest

Documentation

For detailed information, see the documentation in the docs/ directory:

Development

Running Tests

# Run all tests
pytest

# Run with coverage
pytest --cov=ansible_playtest

About

Ansible test framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published