monasca-agent/tests
Witold Bedyk 20b5b95f1e Fix tests.detection.test_mon
Static class variables of FakeProcesses class were used in all test
methods. These variables were used in an uncoordinated way causing tests
to fail ocassionally, depending on the grouping and ordering of the
tests in the worker processes.

Code has been refactored and instance variables are used now in all test
methods.

Change-Id: Ic87a00883dc6cff128809f24164d95eb8c98ae91
Story: 2002848
Task: 22797
2018-08-13 11:17:51 -04:00
..
checks_d Add Apache License 2018-04-14 11:50:07 +00:00
detection Fix tests.detection.test_mon 2018-08-13 11:17:51 -04:00
__init__.py Add Apache License 2018-04-14 11:50:07 +00:00
common.py Add Apache License 2018-04-14 11:50:07 +00:00
README.md Converted the agent config file to yaml to match the plugin config files 2015-03-02 18:36:15 -07:00
test_agent_check.py Add Apache License 2018-04-14 11:50:07 +00:00
test_aggregator.py Add Apache License 2018-04-14 11:50:07 +00:00
test_checks_utils.py Add Apache License 2018-04-14 11:50:07 +00:00
test_config.py Add Apache License 2018-04-14 11:50:07 +00:00
test_keystone.py Integrate with keystoneauth 2017-07-11 09:02:34 +02:00
test_metrics.py Add Apache License 2018-04-14 11:50:07 +00:00
test_modify_config.py Add Apache License 2018-04-14 11:50:07 +00:00
test_process.py Add Apache License 2018-04-14 11:50:07 +00:00
test_service_plugin.py Add Apache License 2018-04-14 11:50:07 +00:00
test_services_check.py Add Apache License 2018-04-14 11:50:07 +00:00
test-agent.yaml Fixed default process metrics. 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.