monasca-agent/tests
Tomasz Trębski b71fd4bef4 Integrate with keystoneauth
Following commit makes enhancements to the
keystone handling inside monasca-agent:

* using generic password approach that abstracts from underlying
keystone version thus allows agent to be used seamlessly with
either v2.0 or v3. The only relevant part is the set of parameters
that one needs to supply to either monasca-reconfigure or agent.yaml
configuration file
* using keystone discovery - it simply means that agent will no longer
enforce particular keystone version but will allow keystoneauth
to pick the best match for given environment

Extra:
* extracted methods get_session and get_client utilize an aproach
presented above and can be used outside of monasca_agent.common.keystone
inside checks or detection plugins
* make imports to import only modules instead specific objects
* removed some redundant methods

Story: 2000995
Task: 4191

Needed-By: I579f6bcd5975a32af2a255be41c9b6c4043fa1dc
Needed-By: Ifee5b88ccb632222310aafb1081ecb9c9d085150
Change-Id: Iec97e50089ed31ae7ad8244b37cec128817871a5
2017-07-11 09:02:34 +02:00
..
checks_d Ceph cluster plugin 2017-06-19 10:11:13 -03:00
detection Merge "Ceph cluster plugin" 2017-06-26 04:16:17 +00:00
__init__.py Renaming agent packages to reflect monasca 2014-12-19 09:22:03 -07:00
common.py Refactor process test 2016-05-24 16:20: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_aggregator.py Validate valueMeta for measurement 2016-03-10 09:53:22 -07:00
test_checks_utils.py Introduce DynamicCheckHelper class 2017-03-16 14:05:35 +00:00
test_config.py Fix broken help commands for monasca-* 2017-05-15 06:53:00 +00:00
test_keystone.py Integrate with keystoneauth 2017-07-11 09:02:34 +02:00
test_metrics.py Partial support for DogStatsd extensions 2017-03-28 08:40:00 +00:00
test_modify_config.py HttpCheck can't detect changes if only change search_pattern 2016-09-13 10:55:44 -06:00
test_process.py Fixes process checker using older psutil versions 2016-10-11 19:42:05 +03:00
test_service_plugin.py Extend CI for monasca-agent 2017-03-30 06:33:59 +02:00
test_services_check.py Monasca agent on ESX hangs on collector autorestart 2017-04-19 17:19:11 -07: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.