Log the URL to an image_ref and not just the ID.

Change-Id: Iaae6b969d9ef3cd0f50dd3297d4b0bb51f61f5c9
This commit is contained in:
Josh Kearney
2011-11-14 15:30:14 -06:00
parent edb63909ae
commit 195759ab60
3 changed files with 12 additions and 5 deletions

View File

@@ -91,5 +91,6 @@ class UsageInfoTestCase(test.TestCase):
'audit_period_ending'):
self.assertTrue(attr in payload,
msg="Key %s not in payload" % attr)
self.assertEquals(payload['image_ref'], '1')
image_ref_url = "%s/images/1" % utils.generate_glance_url()
self.assertEquals(payload['image_ref_url'], image_ref_url)
self.compute.terminate_instance(self.context, instance_id)