Re:Red Hat releases Ansible 2.3 with network automation capa...
by _mikz on Wednesday April 12, 2017 @04:10PM
(#14101275)
Just out of curiosity, how is that module tested? It is one new file without a single test. How people know it works and change it knowing it still works?
[ Parent
| on HN ]
Re:Red Hat releases Ansible 2.3 with network automation capa...
by dkhenry on Thursday April 13, 2017 @01:38PM
(#14109152)
There isn't a very good automated testing strategy for ansible modules. If you look in the documentation there are examples that should exercise all the code paths, so a future developer can validate it is still working by running it with those examples. So much of the logic of the module requires you to interact with boto that without a substantial mocking of that interface the tests would be effectively worthless.