The ceilometer.tests.unit.polling.test_discovery Module

The ceilometer.tests.unit.polling.test_discovery Module

Tests for ceilometer/central/manager.py

class ceilometer.tests.unit.polling.test_discovery.TestEndpointDiscovery(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_keystone_called()[source]
test_keystone_called_no_endpoints()[source]
test_keystone_called_no_service_type()[source]
class ceilometer.tests.unit.polling.test_discovery.TestHardwareDiscovery(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

class 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'}
setUp()[source]
test_hardware_discovery()[source]
test_hardware_discovery_usm()[source]
test_hardware_discovery_without_flavor()[source]
class ceilometer.tests.unit.polling.test_discovery.TestLocalnodeDiscovery(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

setUp()[source]
test_lockalnode_discovery()[source]
class ceilometer.tests.unit.polling.test_discovery.TestProjectDiscovery(*args, **kwds)[source]

Bases: oslotest.base.BaseTestCase

prepare_mock_data()[source]
setUp()[source]
side_effect(domain=None)[source]
test_project_discovery()[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.