Coverage for nova/notifications/objects/scheduler.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.6.12, created at 2025-04-17 15:08 +0000

1# Copyright 2017 Ericsson 

2# 

3# Licensed under the Apache License, Version 2.0 (the "License"); 

4# you may not use this file except in compliance with the License. 

5# You may obtain a copy of the License at 

6# 

7# http://www.apache.org/licenses/LICENSE-2.0 

8# 

9# Unless required by applicable law or agreed to in writing, software 

10# distributed under the License is distributed on an "AS IS" BASIS, 

11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 

12# See the License for the specific language governing permissions and 

13# limitations under the License. 

14 

15from nova.notifications.objects import base 

16from nova.objects import base as nova_base 

17from nova.objects import fields 

18 

19 

20@base.notification_sample('scheduler-select_destinations-start.json') 

21@base.notification_sample('scheduler-select_destinations-end.json') 

22@nova_base.NovaObjectRegistry.register_notification 

23class SelectDestinationsNotification(base.NotificationBase): 

24 # Version 1.0: Initial version 

25 VERSION = '1.0' 

26 

27 fields = { 

28 'payload': fields.ObjectField('RequestSpecPayload') 

29 }