Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases AttributeLoad NameLoad attr body ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str Str TupleLoad Str Str TupleLoad Str Str Assign NameStore Dict Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr NameLoad attr keyword NameLoad decorator_list decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ClassDef bases AttributeLoad NameLoad attr body Assign NameStore Str Assign NameStore Dict Str Call AttributeLoad NameLoad attr Str decorator_list Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str Str Str Call AttributeLoad Call AttributeLoad NameLoad attr attr keyword Num NameLoad NameLoad NameLoad Num Str Str Str Num NameLoad NameLoad NameLoad NameLoad Num Assign NameStore Dict Str Str Str Str Str Dict Str Str Str Str Str Num Str Str FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr With Call AttributeLoad NameLoad attr Str NameStore body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword SubscriptLoad AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad Str Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str keyword Num keyword Num Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Str Assign NameStore AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Num NameLoad Expr Call AttributeLoad NameLoad attr SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str NameLoad Assign NameStore SubscriptLoad SubscriptLoad AttributeLoad NameLoad attr Index Num Index Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad NameLoad attr keyword Str keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword Str keyword AttributeLoad AttributeLoad NameLoad attr attr keyword Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr keyword AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr Dict Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad keyword Str keyword Dict Str Str Str Str Str Dict Str Str Str Str decorator_list Call AttributeLoad NameLoad attr Str decorator_list
N/A N/A mock oslo_utils timeutils nova objects nova.objects base nova.objects fields nova.objects notification nova test TestNotificationBase N/A N/A test NoDBTestCase N/A TestObject N/A N/A base NovaObject N/A N/A VERSION 1.0 N/A fields N/A field_1 field_2 not_important_field N/A N/A fields StringField N/A N/A fields IntegerField N/A N/A fields IntegerField N/A N/A N/A N/A base NovaObjectRegistry register_if False TestNotificationPayload N/A N/A notification NotificationPayloadBase N/A N/A VERSION 1.0 N/A SCHEMA N/A field_1 field_2 N/A source_field field_1 N/A source_field field_2 N/A fields N/A extra_field field_1 field_2 N/A N/A fields StringField N/A N/A fields StringField N/A N/A fields IntegerField populate_schema N/A N/A self source_field N/A N/A N/A N/A N/A N/A super N/A TestNotificationBase TestNotificationPayload self populate_schema source_field source_field N/A N/A N/A N/A N/A base NovaObjectRegistry register_if False TestNotificationPayloadEmptySchema N/A N/A notification NotificationPayloadBase N/A N/A VERSION 1.0 N/A fields N/A extra_field N/A N/A fields StringField N/A N/A N/A N/A base NovaObjectRegistry register_if False TestNotification N/A N/A notification NotificationBase N/A N/A VERSION 1.0 N/A fields N/A payload N/A N/A fields ObjectField TestNotificationPayload N/A N/A N/A N/A base NovaObjectRegistry register_if False TestNotificationEmptySchema N/A N/A notification NotificationBase N/A N/A VERSION 1.0 N/A fields N/A payload N/A N/A fields ObjectField TestNotificationPayloadEmptySchema N/A N/A N/A N/A base NovaObjectRegistry register_if False N/A fake_service N/A created_at updated_at deleted_at deleted id host binary topic report_count forced_down disabled disabled_reason last_seen_up version N/A N/A N/A N/A timeutils utcnow replace microsecond 0 None None False 123 fake-host nova-fake fake-service-topic 1 False False None None 1 N/A expected_payload N/A nova_object.name nova_object.data nova_object.version nova_object.namespace TestNotificationPayload N/A extra_field field_1 field_2 test string test1 42 1.0 nova setUp N/A N/A self N/A N/A N/A N/A N/A N/A super TestNotificationBase self setUp N/A N/A N/A mock patch nova.db.service_update mock_db_service_update N/A N/A N/A self service_obj N/A N/A objects Service context N/A N/A mock sentinel context id N/A N/A self fake_service N/A id N/A N/A N/A N/A self service_obj obj_reset_changes N/A version N/A N/A mock_db_service_update return_value N/A self fake_service N/A N/A N/A N/A self service_obj save N/A N/A self my_obj N/A N/A self TestObject field_1 test1 field_2 42 not_important_field 13 N/A N/A self payload N/A N/A self TestNotificationPayload extra_field test string N/A N/A N/A N/A self payload populate_schema source_field N/A self my_obj N/A N/A self notification N/A N/A self TestNotification event_type N/A N/A notification EventType object test_object action N/A N/A fields NotificationAction UPDATE phase N/A N/A fields NotificationPhase START publisher N/A N/A N/A notification NotificationPublisher from_service_obj N/A self service_obj priority N/A N/A fields NotificationPriority INFO payload N/A self payload N/A _verify_notification N/A N/A self mock_notifier mock_context expected_event_type expected_payload N/A N/A N/A N/A N/A N/A mock_notifier prepare assert_called_once_with publisher_id nova-fake:fake-host N/A mock_notify N/A N/A N/A mock_notifier prepare return_value info N/A N/A N/A self assertTrue N/A mock_notify called N/A N/A N/A self assertEqual N/A N/A N/A mock_notify call_args N/A 0 N/A 0 mock_context N/A N/A N/A self assertEqual N/A N/A N/A mock_notify call_args N/A 1 N/A event_type expected_event_type N/A actual_payload N/A N/A N/A mock_notify call_args N/A 1 N/A payload N/A N/A N/A self assertJsonEqual expected_payload actual_payload N/A test_emit_notification N/A N/A self mock_notifier mock_legacy N/A N/A N/A mock_context N/A N/A mock Mock N/A N/A N/A mock_context to_dict return_value N/A N/A N/A N/A N/A self notification emit mock_context N/A N/A N/A self _verify_notification mock_notifier mock_context expected_event_type test_object.update.start expected_payload N/A self expected_payload N/A N/A N/A self assertFalse N/A mock_legacy called N/A N/A N/A mock patch nova.rpc.LEGACY_NOTIFIER N/A N/A mock patch nova.rpc.NOTIFIER test_emit_with_host_and_binary_as_publisher N/A N/A self mock_notifier N/A N/A N/A noti N/A N/A self TestNotification event_type N/A N/A notification EventType object test_object action N/A N/A fields NotificationAction UPDATE publisher N/A N/A notification NotificationPublisher host fake-host binary nova-fake priority N/A N/A fields NotificationPriority INFO payload N/A self payload N/A mock_context N/A N/A mock Mock N/A N/A N/A mock_context to_dict return_value N/A N/A N/A N/A noti emit mock_context N/A N/A N/A self _verify_notification mock_notifier mock_context expected_event_type test_object.update expected_payload N/A self expected_payload N/A N/A N/A mock patch nova.rpc.NOTIFIER test_emit_event_type_without_phase N/A N/A self mock_notifier mock_legacy N/A N/A N/A noti N/A N/A self TestNotification event_type N/A N/A notification EventType object test_object action N/A N/A fields NotificationAction UPDATE publisher N/A N/A N/A notification NotificationPublisher from_service_obj N/A self service_obj priority N/A N/A fields NotificationPriority INFO payload N/A self payload N/A mock_context N/A N/A mock Mock N/A N/A N/A mock_context to_dict return_value N/A N/A N/A N/A noti emit mock_context N/A N/A N/A self _verify_notification mock_notifier mock_context expected_event_type test_object.update expected_payload N/A self expected_payload N/A N/A N/A self assertFalse N/A mock_legacy called N/A N/A N/A mock patch nova.rpc.LEGACY_NOTIFIER N/A N/A mock patch nova.rpc.NOTIFIER test_not_possible_to_emit_if_not_populated N/A N/A self mock_notifier N/A N/A N/A non_populated_payload N/A N/A self TestNotificationPayload extra_field test string N/A noti N/A N/A self TestNotification event_type N/A N/A notification EventType object test_object action N/A N/A fields NotificationAction UPDATE publisher N/A N/A N/A notification NotificationPublisher from_service_obj N/A self service_obj priority N/A N/A fields NotificationPriority INFO payload non_populated_payload N/A mock_context N/A N/A mock Mock N/A N/A N/A self assertRaises AssertionError N/A noti emit mock_context N/A N/A N/A self assertFalse N/A mock_notifier called N/A N/A N/A mock patch nova.rpc.NOTIFIER test_empty_schema N/A N/A self mock_notifier N/A N/A N/A non_populated_payload N/A N/A self TestNotificationPayloadEmptySchema extra_field test string N/A noti N/A N/A self TestNotificationEmptySchema event_type N/A N/A notification EventType object test_object action N/A N/A fields NotificationAction UPDATE publisher N/A N/A N/A notification NotificationPublisher from_service_obj N/A self service_obj priority N/A N/A fields NotificationPriority INFO payload non_populated_payload N/A mock_context N/A N/A mock Mock N/A N/A N/A mock_context to_dict return_value N/A N/A N/A N/A noti emit mock_context N/A N/A N/A self _verify_notification mock_notifier mock_context expected_event_type test_object.update expected_payload N/A nova_object.name nova_object.data nova_object.version nova_object.namespace TestNotificationPayloadEmptySchema N/A extra_field test string 1.0 nova N/A N/A N/A mock patch nova.rpc.NOTIFIER N/A