nova/nova/tests/unit/objects
Takashi NATSUME b971dc82cb objects: Update keypairs when saving an instance
The keypair of a server is updated when rebuilding the server with a
keypair. This function has been added since API microversion 2.54.
However the 'keypairs' of the instance object is not saved when saving
the instance object currently.

Make the instance object update the 'keypairs' field when saving the
instance object.

Conflicts:
	nova/tests/unit/fake_instance.py

NOTE(stephenfin): Conflicts are due to change
I44ad826f0edb39d770bb3201c675dff78154cbf3 ("partial support for live
migration with specific resources"), which initialized the
'migration_context' attribute of the instance created as part of the
'fake_instance_obj' function.

Changes:
	nova/tests/functional/regressions/test_bug_1843708.py

NOTE(stephenfin): The 'IntegratedTestBase' and 'InstanceHelperMixin'
base classes for functional tests are not fully integrated yet in
stable/train, which requires reinventing the wheel somewhat.

Change-Id: I8a2726b39d0444de8c35480024078a97430f5d0c
Closes-Bug: #1843708
Co-authored-by: Stephen Finucane <stephenfin@redhat.com>
(cherry picked from commit 086796021b)
(cherry picked from commit aed86ee5d6)
2020-07-23 17:45:46 +01:00
..
__init__.py
test_agent.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_aggregate.py DB API changes to get non-matching aggregates from metadata 2019-09-12 16:56:32 -05:00
test_bandwidth_usage.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_block_device.py Remove 'bdm_(update_or_create|destroy)_at_top' 2019-04-16 18:26:17 +01:00
test_build_request.py Merge "Fix misuse of nova.objects.base.obj_equal_prims" 2019-08-13 22:08:39 +00:00
test_cell_mapping.py Fix formatting non-templated cell URLs with no config 2018-10-16 16:11:17 -04:00
test_compute_node.py objects: Add 'NUMACell.pcpuset' field 2019-09-18 00:21:10 +01:00
test_console_auth_token.py Reduce scope of 'path' query parameter to noVNC consoles 2019-10-01 22:16:42 +00:00
test_diagnostics.py Added nova objects for intance diagnostics 2017-05-30 00:39:44 +04:00
test_dns_domain.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_ec2.py objects: Remove unused ec2 objects 2019-07-10 16:15:20 +01:00
test_external_event.py Use EnumField for instance external event name 2015-05-20 22:16:52 +00:00
test_fields.py Switch to using os-resource-classes 2019-02-07 11:11:09 +00:00
test_fixed_ip.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_flavor.py Fix all invalid obj_make_compatible test case 2018-07-27 02:20:46 +00:00
test_floating_ip.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_host_mapping.py Warn for duplicate host mappings during discover_hosts 2019-06-13 17:18:16 +00:00
test_hv_spec.py objects: Move 'vm_mode' to 'fields.VMMode' 2016-11-25 16:19:44 +00:00
test_image_meta.py Libvirt: add support for vPMU configuration. 2019-08-20 14:41:57 +00:00
test_instance.py objects: Update keypairs when saving an instance 2020-07-23 17:45:46 +01:00
test_instance_action.py Add InstanceAction/Event create() method 2019-08-07 17:56:01 -04:00
test_instance_device_metadata.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_instance_fault.py Remove 'instance_fault_create_at_top' 2019-04-29 17:54:17 +01:00
test_instance_group.py Avoid unnecessary joins in InstanceGroup.get_hosts 2019-05-23 11:14:55 -04:00
test_instance_info_cache.py Remove 'instance_info_cache_update_at_top' 2019-04-29 17:55:41 +01:00
test_instance_mapping.py Add user_id field to InstanceMapping 2019-03-08 19:01:16 -05:00
test_instance_numa.py objects: Add 'InstanceNUMATopology.cpu_pinning' property 2019-09-18 00:19:33 +01:00
test_instance_pci_requests.py Remove stale nested backport from InstancePCIRequests 2020-06-26 12:58:38 +00:00
test_keypair.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_migrate_data.py New objects for NUMA live migration 2019-09-12 17:34:34 -04:00
test_migration.py Join migration_context and flavor in Migration.instance 2019-11-14 22:06:53 +00:00
test_migration_context.py object: Introduce Resource and ResourceList objs 2019-09-13 08:50:35 +00:00
test_monitor_metric.py Fix MonitorMetric obj_make_compatible 2016-09-12 14:10:41 +00:00
test_network.py Fix ovo compatibility code unit tests 2019-01-16 15:51:22 +01:00
test_network_request.py Fix all invalid obj_make_compatible test case 2018-07-27 02:20:46 +00:00
test_numa.py hardware: Differentiate between shared and dedicated CPUs 2019-09-18 00:21:10 +01:00
test_objects.py objects: Add 'NUMACell.pcpuset' field 2019-09-18 00:21:10 +01:00
test_pci_device.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_pci_device_pool.py Return empty PciDevicePoolList obj instead of None 2015-09-11 21:20:01 +02:00
test_quotas.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_request_spec.py Nova object changes for forbidden aggregates request filter 2019-09-09 20:16:32 +00:00
test_resource.py libvirt: Enable driver discovering PMEM namespaces 2019-09-13 08:50:35 +00:00
test_security_group.py Fix ovo compatibility code unit tests 2019-01-16 15:51:22 +01:00
test_security_group_rule.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_selection.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_service.py trivial: Use NoDBTestCase instead of TestCase 2019-08-09 15:23:08 +09:00
test_tag.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_task_log.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_trusted_certs.py Use nova.db.api directly 2018-07-10 14:56:27 +00:00
test_vcpu_model.py objects: Move 'cpumodel' to 'fields.CPU*' 2016-11-25 16:19:43 +00:00
test_virt_cpu_topology.py Convert hardware.VirtCPUTopology to nova object 2014-11-20 09:14:25 -05:00
test_virtual_interface.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00
test_volume_usage.py Use uuidsentinel from oslo.utils 2018-09-05 09:08:54 -05:00