Fix bug in QSS notifications

This commit is contained in:
Joseph Schorr 2017-03-10 11:25:55 -05:00
parent 850c32ebfb
commit 48db77b521
2 changed files with 13 additions and 5 deletions

View file

@ -355,6 +355,7 @@ class TestSecurityScanner(unittest.TestCase):
event = VulnerabilityFoundEvent()
msg = '1 Low and 1 more vulnerabilities were detected in repository devtable/simple in 2 tags'
self.assertEquals(msg, event.get_summary(body['event_data'], {}))
self.assertEquals('info', event.get_level(body['event_data'], {}))
else:
self.assertIsNone(queue_item)