The ceilometer.tests.unit.hardware.pollsters.test_generic Module

The ceilometer.tests.unit.hardware.pollsters.test_generic Module

class ceilometer.tests.unit.hardware.pollsters.test_generic.FakeInspector[source]

Bases: ceilometer.hardware.inspector.base.Inspector

DATA = {'test': (0.99, {}, {}), 'test2': (90, {'ip': '10.0.0.2', 'mac': '001122334455', 'speed': 1000, 'name': 'test.teest'}, {})}
inspect_generic(host, cache, extra_metadata=None, param=None)[source]
net_metadata = {'ip': '10.0.0.2', 'mac': '001122334455', 'speed': 1000, 'name': 'test.teest'}
class ceilometer.tests.unit.hardware.pollsters.test_generic.TestGenericPollsters(*args, **kwds)[source]

Bases: ceilometer.tests.base.BaseTestCase

static faux_get_inspector(url, namespace=None)[source]
setUp()[source]
test_get_pollsters_extensions()[source]
test_get_samples()[source]
class ceilometer.tests.unit.hardware.pollsters.test_generic.TestMeterDefinition(*args, **kwds)[source]

Bases: ceilometer.tests.base.BaseTestCase

test_bad_metric_skip(*args, **keywargs)[source]
test_config_definition()[source]
test_config_invalid_field()[source]
test_config_invalid_type_field()[source]
test_config_missing_field()[source]
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.