nova/nova/tests/unit/api
Lee Yarwood 9d037f7d19 image_meta: Provide image_ref as the id when fetching from instance
At present various users of instance.image_meta expect it to be a fully
populated ImageMeta object. However when the instance is pulled from the
database the ImageMeta object is only partially populated via
instance.system_metadata with a limited set of attributes such as
min_ram, min_disk, disk_format and container_format. This can result in
NotImplementedErrors being raised by o.vo as seen in bug #1928063 when
an attempt is made to access common attributes such as id or name.

To avoid this the id is now provided by instance.image_ref when
available.

The majority of the change is test fallout and ensuring that valid UUIDs
are provided as instance.image_ref and used by instance.image_meta.

Related-Bug: #1928063
Change-Id: I55d66c3a6cbd50da90065f4a58f77b5cd29ce9ea
2021-05-20 16:57:24 +01:00
..
openstack image_meta: Provide image_ref as the id when fetching from instance 2021-05-20 16:57:24 +01:00
validation objects: Add 'socket' PCI NUMA affinity 2021-02-24 10:23:33 +00:00
__init__.py
test_auth.py Deprecate [api]auth_strategy and noauth2 2019-10-09 15:16:07 -05:00
test_compute_req_id.py Migrate to oslo request_id middleware - mv 2.46 2017-05-27 10:11:44 +00:00
test_wsgi.py Support sys.argv in wsgi app 2020-11-25 12:22:41 +01:00