Tests for ceilometer agent manager
-
class
ceilometer.tests.unit.polling.test_manager.BaseAgent(*args, **kwds)[source]
Bases: ceilometer.tests.base.BaseTestCase
-
class
BatchPollster(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.BatchTestPollster
-
resources = []
-
samples = []
-
test_data = <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.023732>
-
class
Discovery(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestDiscovery
-
params = []
-
resources = []
-
class
DiscoveryAnother(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestDiscovery
-
group_id
-
params = []
-
resources = []
-
class
DiscoveryException(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestDiscoveryException
-
params = []
-
class
Pollster(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
-
resources = []
-
samples = []
-
test_data = <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.023644>
-
class
PollsterAnother(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
-
resources = []
-
samples = []
-
test_data = <name: testanother, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.023812>
-
class
PollsterKeystone(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollsterKeystone
-
resources = []
-
samples = []
-
test_data = <name: testkeystone, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.023882>
-
class
PollsterPollingException(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollsterPollingException
-
resources = []
-
samples = []
-
test_data = <name: testpollingexception, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.023955>
-
create_discoveries()[source]
-
create_extension_list()[source]
-
create_manager()[source]
-
fake_notifier_sample(ctxt, event_type, payload)[source]
-
setUp()[source]
-
setup_polling(poll_cfg=None)[source]
-
tearDown()[source]
-
class
ceilometer.tests.unit.polling.test_manager.BatchTestPollster(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
-
default_discovery
-
discovery = None
-
get_samples(manager, cache, resources)[source]
-
test_data = <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.023362>
-
exception
ceilometer.tests.unit.polling.test_manager.PollingException[source]
Bases: exceptions.Exception
-
class
ceilometer.tests.unit.polling.test_manager.TestDiscovery(conf)[source]
Bases: ceilometer.polling.plugin_base.DiscoveryBase
-
discover(manager, param=None)[source]
-
class
ceilometer.tests.unit.polling.test_manager.TestDiscoveryException(conf)[source]
Bases: ceilometer.polling.plugin_base.DiscoveryBase
-
discover(manager, param=None)[source]
-
class
ceilometer.tests.unit.polling.test_manager.TestManager(*args, **kwds)[source]
Bases: ceilometer.tests.base.BaseTestCase
-
setUp()[source]
-
test_builder()[source]
-
test_hash_of_set()[source]
-
test_import_error_in_plugin(*args, **keywargs)[source]
-
test_load_exceptional_plugins(*args, **keywargs)[source]
-
test_load_failed_plugins(*args, **keywargs)[source]
-
test_load_normal_plugins(*args, **keywargs)[source]
-
test_load_plugins()[source]
-
class
ceilometer.tests.unit.polling.test_manager.TestPollingAgent(*args, **kwds)[source]
Bases: ceilometer.tests.unit.polling.test_manager.BaseAgent
-
setUp()[source]
-
test_batching_polled_samples_default()[source]
-
test_batching_polled_samples_false()[source]
-
test_batching_polled_samples_true()[source]
-
test_get_sample_resources()[source]
-
test_hardware_discover_fail_minimize_logs(*args, **keywargs)[source]
-
test_multiple_pollings_different_static_resources()[source]
-
test_multiple_sources_different_discoverers()[source]
-
test_per_polling_discovery_discovered_augmented_by_static()[source]
-
test_per_polling_discovery_discovered_duplicated_static()[source]
-
test_per_polling_discovery_discovered_only()[source]
-
test_per_polling_discovery_static_only()[source]
-
test_per_pollster_discovery()[source]
-
test_per_pollster_discovery_caching()[source]
-
test_per_pollster_discovery_duplicated()[source]
-
test_per_pollster_discovery_overridden_by_duplicated_static()[source]
-
test_per_pollster_discovery_overridden_by_per_polling_discovery()[source]
-
test_polling_and_notify_with_resources(*args, **keywargs)[source]
-
test_polling_exception(*args, **keywargs)[source]
-
test_polling_novalike_exception(*args, **keywargs)[source]
-
test_polling_samples_timestamp(*args, **keywargs)[source]
-
test_setup_polling_task_same_interval()[source]
-
test_setup_polling_tasks()[source]
-
test_setup_polling_tasks_mismatch_counter()[source]
-
test_setup_polling_tasks_multiple_interval()[source]
-
test_skip_polling_and_notify_with_no_resources(*args, **keywargs)[source]
-
test_skip_polling_polled_resources(*args, **keywargs)[source]
-
test_start(*args, **keywargs)[source]
-
test_when_keystone_fail()[source]
Test for bug 1316532.
-
class
ceilometer.tests.unit.polling.test_manager.TestPollingAgentPartitioned(*args, **kwds)[source]
Bases: ceilometer.tests.unit.polling.test_manager.BaseAgent
-
setUp()[source]
-
test_discovery_partitioning()[source]
-
test_discovery_partitioning_unhashable()[source]
-
test_static_resources_partitioning()[source]
-
class
ceilometer.tests.unit.polling.test_manager.TestPollster(conf)[source]
Bases: ceilometer.polling.plugin_base.PollsterBase
-
default_discovery
-
discovery = None
-
get_samples(manager, cache, resources)[source]
-
test_data = <name: test, volume: 1, resource_id: test_run_tasks, timestamp: 2020-06-08T01:26:11.007179>
-
class
ceilometer.tests.unit.polling.test_manager.TestPollsterBuilder(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
-
classmethod
build_pollsters(conf)[source]
-
class
ceilometer.tests.unit.polling.test_manager.TestPollsterKeystone(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
-
get_samples(manager, cache, resources)[source]
-
class
ceilometer.tests.unit.polling.test_manager.TestPollsterPollingException(conf)[source]
Bases: ceilometer.tests.unit.polling.test_manager.TestPollster
-
discovery = 'test'
-
get_samples(manager, cache, resources)[source]
-
polling_failures = 0
-
ceilometer.tests.unit.polling.test_manager.default_test_data(name='test')[source]