ceilometer.tests.unit.polling.test_discovery
Module¶Tests for ceilometer/central/manager.py
ceilometer.tests.unit.polling.test_discovery.
TestEndpointDiscovery
(*args, **kwds)[source]¶Bases: oslotest.base.BaseTestCase
ceilometer.tests.unit.polling.test_discovery.
TestHardwareDiscovery
(*args, **kwds)[source]¶Bases: oslotest.base.BaseTestCase
MockInstance
[source]¶Bases: object
addresses
= {'ctlplane': [{'OS-EXT-IPS-MAC:mac_addr': '01-23-45-67-89-ab', 'addr': '0.0.0.0'}]}¶flavor
= {'id': 'flavor_id'}¶id
= 'resource_id'¶image
= {'id': 'image_id'}¶expected
= {'image_id': 'image_id', 'resource_url': 'snmp://ro_snmp_user:password@0.0.0.0', 'flavor_id': 'flavor_id', 'mac_addr': '01-23-45-67-89-ab', 'resource_id': 'resource_id'}¶expected_usm
= {'image_id': 'image_id', 'resource_url': 'snmp://ro_snmp_user:password@0.0.0.0?priv_proto=aes192&priv_password=priv_pass', 'flavor_id': 'flavor_id', 'mac_addr': '01-23-45-67-89-ab', 'resource_id': 'resource_id'}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.