Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/nova/tests/unit/objects/test_instance_pci_requests.py b/nova/tests/unit/objects/test_instance_pci_requests.py
- index 3a19be4..b1ff903 100644
- --- a/nova/tests/unit/objects/test_instance_pci_requests.py
- +++ b/nova/tests/unit/objects/test_instance_pci_requests.py
- @@ -96,6 +96,19 @@ class TestInstancePCIRequestSpec(test.NoDBTestCase):
- class _TestInstancePCIRequests(object):
- + def test_old_node_sends_old_format_to_new_node(self):
- + # This is what a primitive from v1.1 would look like
- + request_v1_1 = {'nova_object.changes': ['count'],
- + 'nova_object.data': {'spec': [{'foo': 'bar'}]},
- + 'nova_object.name': 'InstancePCIRequest',
- + 'nova_object.namespace': 'nova',
- + 'nova_object.version': '1.2'}
- +
- + # Pretend we're a new node receiving the above over RPC from
- + # either an older node, or a node who has backported it
- + # to v1.1 because there are old nodes in the cluster.
- + objects.InstancePCIRequest.obj_from_primitive(request_v1_1)
- +
- @mock.patch('nova.db.instance_extra_get_by_instance_uuid')
- def test_get_by_instance_uuid(self, mock_get):
- pci_requests = copy.deepcopy(fake_pci_requests)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement