monasca-agent/tests
Martin Chacon Piza d3cc8c1e7d Use unittest.mock instead of mock
The mock third party library was needed for mock support in py2
runtimes. Since we now only support py36 and later, we can use the
standard lib unittest.mock module instead.

Change-Id: Ia3f2c8abc87cf5551d3469d616790e8e9d567bce
2020-08-10 13:41:08 +02:00
..
checks_d Remove dependency on local hostname 2020-06-01 10:43:47 +01:00
detection Use unittest.mock instead of mock 2020-08-10 13:41:08 +02:00
README.md Converted the agent config file to yaml to match the plugin config files 2015-03-02 18:36:15 -07: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
test-agent.yaml Fixed default process metrics. 2015-08-24 13:06:35 -06:00
test_agent_check.py Add Apache License 2018-04-14 11:50:07 +00:00
test_aggregator.py Enable unit tests for py36 2019-07-18 16:08:09 +02:00
test_checks_utils.py Enable unit tests for py36 2019-07-18 16:08:09 +02:00
test_config.py Use unittest.mock instead of third party mock 2020-04-18 11:54:36 -05:00
test_keystone.py Use unittest.mock instead of third party mock 2020-04-18 11:54:36 -05:00
test_metrics.py Enable unit tests for py36 2019-07-18 16:08:09 +02:00
test_modify_config.py Use unittest.mock instead of third party mock 2020-04-18 11:54:36 -05:00
test_process.py Use unittest.mock instead of third party mock 2020-04-18 11:54:36 -05:00
test_remove_config.py Use unittest.mock instead of mock 2020-08-10 13:41:08 +02: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_statsd.py Fix parsing of StatsD metrics with Py3 2020-05-22 21:08:28 +01:00

README.md

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.