The ceilometer.tests.unit.ipmi.notifications.test_ironic
Module¶
Tests for producing IPMI sample messages from notification events.
-
class
ceilometer.tests.unit.ipmi.notifications.test_ironic.
TestNotifications
(*args, **kwds)[source]¶ Bases:
oslotest.base.BaseTestCase
-
test_ipmi_current_notification
()[source]¶ Test IPMI Current sensor data.
A single current reading is effectively the same as temperature, modulo “current”.
-
test_ipmi_fan_notification
()[source]¶ Test IPMI Fan sensor data.
A single fan reading is effectively the same as temperature, modulo “fan”.
-
test_ipmi_temperature_notification
()[source]¶ Test IPMI Temperature sensor data.
Based on the above ipmi_testdata the expected sample for a single temperature reading has:
* a resource_id composed from the node_uuid Sensor ID * a name composed from 'hardware.ipmi.' and 'temperature' * a volume from the first chunk of the Sensor Reading * a unit from the last chunk of the Sensor Reading * some readings are skipped if the value is 'Disabled' * metatata with the node id
-
test_ipmi_voltage_notification
()[source]¶ Test IPMI Voltage sensor data.
A single voltage reading is effectively the same as temperature, modulo “voltage”.
-
test_missing_node_uuid
(*args, **keywargs)[source]¶ Test for desired error message when ‘node_uuid’ missing.
Presumably this will never happen given the way the data is created, but better defensive than dead.
-