Closed varet80 closed 7 years ago
@zuazo I might need your help with the unit tests & Integration tests, though the system generates properly the file on integration tests.
Also I want to see an alternative (next version) of using custom resource for the password file.
OK, Thanks @billiaz!! Give me a couple of days to review this.
Regarding the tests, I think the simplest thing would be to do some integration tests in the testing cookbook, maybe create a new recipe there, and adding some Serverspec resources to check the generated file under test/integration. The steps:
dovecot_test::create_pwfile
. This recipe will include your dovecot::create_pwfile
recipe.Tell me if you run into any errors/problems. If you can not complete them, send me what you have and I already try to do it myself.
Another alternative would be to add ChefSpec tests, but I think in this specific case that could be trickier due to the ruby block.
Hey! thanks for the support
Thanks for the help! it is my first real contribution.
Is there something more I should do to make this pull request ready for merge?
Thanks @billiaz. No, it is ready to be merged. Give me a couple of days because I want to test some of the functions by hand. I'm planning to release this during weekend if you can wait a little.
OK. I have merged this PR after:
LineLength
.You can see the changes in 667058b1ccb2f52ac432cca61bbaadb58800e6a6.