yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #02587
[Bug 1177818] Re: test_mismatch_[size|checksum] incorrectly assert image data was deleted
** Changed in: glance
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1177818
Title:
test_mismatch_[size|checksum] incorrectly assert image data was
deleted
Status in OpenStack Image Registry and Delivery Service (Glance):
Fix Released
Bug description:
The test_mismatch_size and test_mismatch_checksum tests in
glance/tests/functional/v1/test_api.py incorrectly check for image
data when asserting it was removed.
Currently:
image_count = len([name for name in os.listdir(images_dir)
if os.path.isfile(name)])
This will always = 0 since it's checking if 'name' is a file when it
needs to check the full path of the file since the tests are not run
from the temp directory.
To manage notifications about this bug go to:
https://bugs.launchpad.net/glance/+bug/1177818/+subscriptions