The json_plugin tests read the localhost name in a different way to how the hostname is fetched in the Monasca Agent check. This can cause these tests to fail since the hostnames may differ. For example, only one may contain .home as a suffix. In this change we avoid reading the hostname from the system running the tests. Story: 2007743 Task: 39921 Change-Id: Ifddba6aa9350f722a741a28a152ed9bc3e0b7da6
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.