Some of the subclasses of ServicePlugin allow overriding the service_api_url using args. This could be useful for all plugins so move that code into ServicePlugin. Also allow overriding of process_names, search_pattern, overwrite and template_dir. Remove the code in the ironic and trove plugins that duplicated this code. Added a unit test for this code. Change-Id: Ibd97effa6d5bff0cf621e4bdcbe6f5b781d195f4
Tests for the mon agent.
Run with nosestests -w tests
For many tests to work an agent.yaml must be in either /etc/monasca/agent/agent.yaml or in the working directory.
Many tests require specific applications enabled in order for the test to run, these are skipped by default. See https://nose.readthedocs.org/en/latest/plugins/skip.html for details.