Skip to content

Commit

Permalink
[Winlogbeat] fix system test failure (elastic#11422)
Browse files Browse the repository at this point in the history
The new system test added in elastic#11357 checks for the wrong field
in 6.7 and 6.6.
  • Loading branch information
adriansr committed Mar 25, 2019
1 parent 9c8cbb6 commit 75fd9bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion winlogbeat/tests/system/test_eventlogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def test_multiline_events(self):
self.write_event_log(msg)
evts = self.read_events()
self.assertTrue(len(evts), 1)
self.assertEqual(unicode(self.api), evts[0]["winlog.api"], evts[0])
self.assertEqual(unicode(self.api), evts[0]["type"], evts[0])
self.assertNotIn("event.original", evts[0], msg=evts[0])
self.assertIn("message", evts[0], msg=evts[0])
self.assertNotIn("\\u000a", evts[0]["message"], msg=evts[0])
Expand Down
2 changes: 1 addition & 1 deletion winlogbeat/tests/system/test_wineventlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ def test_multiline_events(self):
self.write_event_log(msg)
evts = self.read_events()
self.assertTrue(len(evts), 1)
self.assertEqual(unicode(self.api), evts[0]["winlog.api"], msg=evts[0])
self.assertEqual(unicode(self.api), evts[0]["type"], msg=evts[0])
self.assertNotIn("event.original", evts[0], msg=evts[0])
self.assertIn("message", evts[0], msg=evts[0])
self.assertNotIn("\\u000a", evts[0]["message"], msg=evts[0])
Expand Down

0 comments on commit 75fd9bd

Please sign in to comment.