Commit ff47b3c8 authored by Ilias Tsitsimpis's avatar Ilias Tsitsimpis Committed by Christos Stavrakakis
Browse files

burnin:Determine uploaded image from it's location

Previous use of 'owner' was wrong as owner is different from user id we
are using right now.
parent b63973ae
......@@ -310,10 +310,7 @@ class ImagesTestCase(unittest.TestCase):
params, properties)
# Get image id
details = self.plankton.list_public(detail=True)
detail = filter(
lambda x: x['owner'] == PITHOS_USER and
x['name'] == self.temp_image_name,
detail = filter(lambda x: x['location'] == location, details)
self.assertEqual(len(detail), 1)
cls = type(self)
cls.temp_image_id = detail[0]['id']
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment