Tests - Invalid JSON replies in hooks no longer fail the test framework

This commit is contained in:
Renato Alves
2015-02-15 17:25:58 +00:00
parent e6031183dd
commit 1b218d68f5
2 changed files with 47 additions and 2 deletions

View File

@@ -125,6 +125,7 @@ class TestHooksOnAdd(TestCase):
self.t.hooks[hookname].assertTriggered()
self.t.hooks[hookname].assertTriggeredCount(1)
self.t.hooks[hookname].assertExitcode(0)
self.t.hooks[hookname].assertInvalidJSONOutput()
logs = self.t.hooks[hookname].get_logs()
self.assertEqual(self.t.hooks[hookname].get_logs()["output"]["msgs"][0], "FEEDBACK")