The ceilometer.tests.unit.hardware.inspector.test_snmp Module

The ceilometer.tests.unit.hardware.inspector.test_snmp Module

Tests for ceilometer/hardware/inspector/snmp/inspector.py

class ceilometer.tests.unit.hardware.inspector.test_snmp.FakeCommandGenerator[source]

Bases: object

bulkCmd(authData, transportTarget, nonRepeaters, maxRepetitions, *oids, **kwargs)[source]
getCmd(authData, transportTarget, *oids, **kwargs)[source]
class ceilometer.tests.unit.hardware.inspector.test_snmp.FakeObjectName(name)[source]

Bases: object

class ceilometer.tests.unit.hardware.inspector.test_snmp.TestSNMPInspector(*args, **kwds)[source]

Bases: ceilometer.tests.base.BaseTestCase

mapping = {'test_nosuch': {'post_op': None, 'metadata': {}, 'matching_type': 'type_exact', 'metric_oid': ('1.3.6.1.4.1.2021.4.14.0', <type 'int'>)}, 'test_exact': {'post_op': '_fake_post_op', 'metadata': {'meta': ('1.3.6.1.4.1.2021.10.1.3.8', <type 'int'>)}, 'matching_type': 'type_exact', 'metric_oid': ('1.3.6.1.4.1.2021.10.1.3.1', <type 'int'>)}, 'test_prefix': {'post_op': None, 'metadata': {'meta': ('1.3.6.1.4.1.2021.9.1.3', <type 'int'>)}, 'matching_type': 'type_prefix', 'metric_oid': ('1.3.6.1.4.1.2021.9.1.8', <type 'int'>)}}
setUp()[source]
test_auth_strategy(*args, **keywargs)[source]
test_inspect_generic_exact()[source]
test_inspect_generic_prefix()[source]
test_inspect_no_such_object()[source]
test_post_op_disk()[source]
test_post_op_net()[source]
test_prepare_params()[source]
test_pysnmp_ver43()[source]
test_snmp_error()[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.