Remove not null check on Image Usage

Sometimes the “usage” field is null in stacktach_imageexists table.
Hence, removing the not null check
on usage field.
Also, corrected a small report name issue

Change-Id: Ic723b336ac737e58b8b99254a6171a24c7469d3c
This commit is contained in:
Priyanka Agrawal
2014-08-19 15:45:40 +05:30
parent 3eb4999d65
commit c2d40ef8c8
2 changed files with 1 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ class GlanceStackTachTest(StackTachFixture):
def test_get_image_events_report_no_escaped_json(self): def test_get_image_events_report_no_escaped_json(self):
""" """
@summary: Verify that the "nova usage audit" does not contain @summary: Verify that the "glance usage audit" does not contain
double encoded json double encoded json
""" """
report_id = (self.stacktach_behavior report_id = (self.stacktach_behavior

View File

@@ -60,7 +60,6 @@ class GlanceStackTachDBTest(StackTachDBFixture):
self.assertIsNotNone(element.audit_period_ending) self.assertIsNotNone(element.audit_period_ending)
self.assertIsNotNone(element.status) self.assertIsNotNone(element.status)
self.assertIsNotNone(element.raw) self.assertIsNotNone(element.raw)
self.assertIsNotNone(element.usage)
self.assertIsNotNone(element.send_status) self.assertIsNotNone(element.send_status)
self.assertIsNotNone(element.owner) self.assertIsNotNone(element.owner)
self.assertIsNotNone(element.size) self.assertIsNotNone(element.size)