Added log correlation testing

Added `testLogCorrelation`
This commit is contained in:
Benjamin Graham 2020-06-09 12:36:23 -04:00 committed by Justin Stephenson
parent 11fd640fe5
commit 8275cca551
3 changed files with 13 additions and 2 deletions

View file

@ -41,7 +41,7 @@ class TestApplication(MachineCase):
self._sel_rec()
# fast forward
b.click("#player-fast-forward")
b.wait_in_text(self._term_line(26), "logout")
b.wait_in_text(self._term_line(12), "exit")
b.wait_attr(slider, "style", "left: 100%;")
# test restart playback
b.click("#player-restart")
@ -250,6 +250,17 @@ class TestApplication(MachineCase):
assert b.attr(".dragnpan", "scrollTop") != 0
assert b.attr(".dragnpan", "scrollLeft") != 0
def testLogCorrelation(self):
b, _ = self._login()
# select the recording with the extra logs
self._sel_rec(":contains('01:07')")
b.click("#btn-logs-view")
# fast forward until the end
while "exit" not in b.text(self._term_line(22)):
b.click("#player-skip-frame")
# check for extra log entries
b.wait_present(".cockpit-log-message:contains('authentication failure')")
if __name__ == "__main__":
test_main()