8d4bd979d5
The remove_config() function only removes an exact match for the configured instance. This will allow removing plugin configuration when all config is not known. Use case: A compute node has been removed, so any host_alive ping checks that are configured for it should be removed. But at the time of removal the list of target_hostnames to match are not known. Change-Id: I8050e1eed68d7b64f7a968b061afa69fe2e86d72 Story: 2004539 Task: 28287 |
||
---|---|---|
.. | ||
checks_d | ||
detection | ||
README.md | ||
__init__.py | ||
common.py | ||
test-agent.yaml | ||
test_agent_check.py | ||
test_aggregator.py | ||
test_checks_utils.py | ||
test_config.py | ||
test_keystone.py | ||
test_metrics.py | ||
test_modify_config.py | ||
test_process.py | ||
test_remove_config.py | ||
test_service_plugin.py | ||
test_services_check.py |
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.