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]

Hook method for setting up the test fixture before exercising it.

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 = {'flavor_id': 'flavor_id', 'image_id': 'image_id', 'mac_addr': '01-23-45-67-89-ab', 'resource_id': 'resource_id', 'resource_url': 'snmp://ro_snmp_user:password@0.0.0.0'}
expected_usm = {'flavor_id': 'flavor_id', 'image_id': 'image_id', 'mac_addr': '01-23-45-67-89-ab', 'resource_id': 'resource_id', 'resource_url': 'snmp://ro_snmp_user:password@0.0.0.0?priv_proto=aes192&priv_password=priv_pass'}
setUp()[source]

Hook method for setting up the test fixture before exercising it.

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]

Hook method for setting up the test fixture before exercising it.

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]

Hook method for setting up the test fixture before exercising it.

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.