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

Implement proper testing of module code #16

Open
OndrejHome opened this issue Aug 16, 2018 · 0 comments
Open

Implement proper testing of module code #16

OndrejHome opened this issue Aug 16, 2018 · 0 comments
Assignees

Comments

@OndrejHome
Copy link
Owner

Goal:

  • avoiding stupid mistakes like syntax errors or unsupported syntaxes that are not detected by python -m py_compile library/*.py

Possible options:

  1. full unit testing simulating the environment with cluster - https://docs.ansible.com/ansible/latest/dev_guide/testing_units_modules.html
  • quite heave to implement all tests and will get stuck with outputs from given version of pcs, but works without special infrastructure
  1. setting up infrastructure to test the roles with interactive use - have some roles and infrastructure with VMs that will actively use the modules and check for errors during execution of playbooks
  • needs infrastructure to basically create clusters and run playbooks on them, will cover future changes in pcs, but needs infrastructure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant