cloudera / cloudera-playbook

Cloudera deployment automation with Ansible
Apache License 2.0
198 stars 187 forks source link

[Feature Request] Tests (using Molecule) #36

Open lhoss opened 5 years ago

lhoss commented 5 years ago

For the moment there are NO tests at all, which makes it more difficult to refactor the code, to test changes and thus to contribute.

My proposal is to change that, using the great Molecule framework. As a start, I got an initial version done, running in a docker container (with systemd), of course single node first (multiple nodes are possible too) You can check at my branch: https://github.com/scigility/cloudera-playbook/tree/molecule_tests Plz note: This is not ready yet, but I wanted to inform the community about the initial work

lhoss commented 5 years ago

@dbeech wdyt about molecule tests?

dbeech commented 5 years ago

Hi @lhoss . I haven't had chance to check your molecule_tests branch in detail but I'm definitely in favour of automated testing. Changes are difficult to test today and usually need runs of the entire playbook, which is very time consuming. Anything to improve that would be very welcome.

lhoss commented 4 years ago

A 2nd iteration, rebased to latest master: https://github.com/cloudera/cloudera-playbook/pull/59 :)