It is difficult to write integration tests against nerve-tools and specifically the configure_nerve executable. nerve-tools uses paasta-tools in order to determine which services are running on the host. paasta-tools has several other dependencies, one being marathon which it communicates to over HTTP.
We have written a fake configure_nerve for use as a fixture in acceptance tests. As nerve has grows in complexity, this fake also grows and lots of logic is duplicated.
It would be great if nerve-tools provided testing tools to allow injecting the desired services from which the nerve-config is written, for use in consumers' testing environment.
It is difficult to write integration tests against nerve-tools and specifically the
configure_nerveexecutable. nerve-tools usespaasta-toolsin order to determine which services are running on the host.paasta-toolshas several other dependencies, one being marathon which it communicates to over HTTP.We have written a fake configure_nerve for use as a fixture in acceptance tests. As nerve has grows in complexity, this fake also grows and lots of logic is duplicated.
It would be great if nerve-tools provided testing tools to allow injecting the desired services from which the nerve-config is written, for use in consumers' testing environment.