4 ms·
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 pa
by dkhenry 10y ago
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.