The ironic.tests.unit.objects.test_notification Module

class ironic.tests.unit.objects.test_notification.TestNotificationBase(*args, **kwargs)[source]

Bases: ironic.tests.base.TestCase

class TestNotification(context=None, **kwargs)[source]

Bases: ironic.objects.notification.NotificationBase

class TestNotificationBase.TestNotificationEmptySchema(context=None, **kwargs)[source]

Bases: ironic.objects.notification.NotificationBase

class TestNotificationBase.TestNotificationPayload(*args, **kwargs)[source]

Bases: ironic.objects.notification.NotificationPayloadBase

class TestNotificationBase.TestNotificationPayloadEmptySchema(*args, **kwargs)[source]

Bases: ironic.objects.notification.NotificationPayloadBase

class TestNotificationBase.TestObject(context=None, **kwargs)[source]

Bases: ironic.objects.base.IronicObject

class TestNotificationBase.TestObjectMissingField(context=None, **kwargs)[source]

Bases: ironic.objects.base.IronicObject

TestNotificationBase.setUp()[source]
TestNotificationBase.test_emit_notification(*args, **keywargs)[source]
TestNotificationBase.test_emit_notification_empty_schema(*args, **keywargs)[source]
TestNotificationBase.test_event_type_invalid_status_fails()[source]
TestNotificationBase.test_event_type_make_status_invalid()[source]
TestNotificationBase.test_event_type_with_status()[source]
TestNotificationBase.test_event_type_without_status_fails()[source]
TestNotificationBase.test_no_emit_level_too_low(*args, **keywargs)[source]
TestNotificationBase.test_no_emit_notifs_disabled(*args, **keywargs)[source]
TestNotificationBase.test_no_emit_schema_not_populated(*args, **keywargs)[source]
TestNotificationBase.test_populate_schema()[source]
TestNotificationBase.test_populate_schema_missing_required_obj_field()[source]
TestNotificationBase.test_populate_schema_no_object_field()[source]
TestNotificationBase.test_populate_schema_nullable_field_auto_populates()[source]

Test that nullable fields always end up in the payload.