Files
monasca-agent/tests
Doug Szumski 5af9c5a485 Remove dependency on local hostname
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
2020-06-01 10:43:47 +01:00
..
2018-04-14 11:50:07 +00:00
2018-04-14 11:50:07 +00:00
2018-04-14 11:50:07 +00:00
2019-07-18 16:08:09 +02:00
2019-07-18 16:08:09 +02:00
2018-04-14 11:50:07 +00:00
2018-04-14 11:50:07 +00:00
2015-08-24 13:06:35 -06:00

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.