nova/nova/tests/unit/image
Mike Dorman 14440aabf4 Ensure Glance image 'size' attribute is 0, not 'None'
Make sure that if the 'size' attribute for an image does not
exist in Glance, that we set the value to 0 and not 'None'.
Glance does not accept 'None' as a valid value for the 'size'
attribute.

Co-Authored-By:Kevin_Zheng<zhengzhenyu@huawei.com>

Change-Id: I8c6a8749d86a22eb2d2e1e84ce6a2b9a4a4992ee
Closes-bug: 1487742
(cherry picked from commit cc7f0bc038)
2016-02-12 22:00:41 +00: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 virt: convert hardware module to use nova.objects.ImageMeta 2015-07-27 16:11:14 -07:00
rel.tar.gz move all tests to nova/tests/unit 2014-11-12 15:31:08 -05:00
test_fake.py Get py34 subunit.run test discovery to work 2015-07-28 10:40:56 +00:00
test_glance.py Ensure Glance image 'size' attribute is 0, not 'None' 2016-02-12 22:00:41 +00:00
test_s3.py Switch to moxstubout and mockpatch from oslotest 2014-12-02 08:03:42 -05:00
test_transfer_modules.py Get py34 subunit.run test discovery to work 2015-07-28 10:40:56 +00:00