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:
@@ -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
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user