nova/nova/tests/unit/image
Matt Riedemann 60a9b725a6 Set size/status during image create with FakeImageService
This is needed for an upcoming change which introduces
a functional test which shelves a server. Shelving a server
creates a snapshot image and in the real world, glance sets
the size and status attributes on the image when it's created
in glance. Our FakeImageService wasn't doing that, so tests
that are running at the same time with the same fake noauth
credentials are listing images and picking up the shelve
snapshot image which doesn't have size or status set and
that produces a KeyError in the API code.

Change-Id: I70d1505c915e80156aaa4d27a7d47e437b40b6f1
(cherry picked from commit 371a2512a7)
2017-04-06 21:33:26 -04:00
..
__init__.py move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
abs.tar.gz move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
fake.py Set size/status during image create with FakeImageService 2017-04-06 21:33:26 -04:00
rel.tar.gz move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_fake.py Fix invalid import order 2016-07-04 16:03:42 +05:30
test_glance.py conf: Move api options to a group 2016-11-25 16:32:31 -06:00
test_transfer_modules.py config options: move image_file_url download options 2016-05-10 16:12:48 +02:00