glance/glance/tests/unit/v2
Dan Smith 663e027e50 Flesh out FakeImage for extra_properties
The FakeImage in test_images_resource.py is missing a lot of standard
properties. That becomes a problem as soon as you add extra_properties,
which gets delegated to for any missing property by ImageTarget. Thus,
if that fixture has extra_properties defined on it, any other base
property (i.e. checksum, size, etc) will be looked for inside that dict
if it is not defined on the fixture itself.

Thus, this adds fake values for all those properties and adds
extra_properties={} so that subsequent patches can put things into
extra_properties without a bunch of work.

Change-Id: I4b63706927b599eb343b614f0c396f699378e14b
(cherry picked from commit 7c91a177ed)
2020-08-25 11:33:45 -07:00
..
__init__.py Adding versioned namespaces in test dir 2012-03-25 13:28:45 -07:00
test_discovery_image_import.py Copy existing image in multiple stores 2020-02-12 05:32:46 +00:00
test_discovery_stores.py Rethinking filesystem access 2019-10-01 09:53:48 +00:00
test_image_actions_resource.py Implement and Enable Community Images 2017-01-18 17:56:12 +00:00
test_image_data_resource.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_image_members_resource.py Fix member create to handle unicode characters 2017-12-26 19:42:05 +00:00
test_image_tags_resource.py Extracted HTTP response codes to constants in tests 2016-10-06 15:17:06 +00:00
test_images_resource.py Flesh out FakeImage for extra_properties 2020-08-25 11:33:45 -07:00
test_metadef_resources.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00
test_schemas_resource.py Change location metadata key 'backend' to 'store' 2019-08-08 04:52:51 +00:00
test_tasks_resource.py Use unittest.mock instead of third party mock 2020-04-20 15:07:00 +00:00