Added log correlation testing
Added `testLogCorrelation`
This commit is contained in:
parent
11fd640fe5
commit
8275cca551
3 changed files with 13 additions and 2 deletions
|
|
@ -475,7 +475,7 @@ class Recording extends React.Component {
|
||||||
</div>
|
</div>
|
||||||
<div className="row">
|
<div className="row">
|
||||||
<div className="col-md-12">
|
<div className="col-md-12">
|
||||||
<button className="btn btn-default" style={{"float":"left"}} onClick={this.handleLogsClick}>{_("Logs View")}</button>
|
<button id="btn-logs-view" className="btn btn-default" style={{"float":"left"}} onClick={this.handleLogsClick}>{_("Logs View")}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{this.state.logsEnabled === true &&
|
{this.state.logsEnabled === true &&
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ class TestApplication(MachineCase):
|
||||||
self._sel_rec()
|
self._sel_rec()
|
||||||
# fast forward
|
# fast forward
|
||||||
b.click("#player-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%;")
|
b.wait_attr(slider, "style", "left: 100%;")
|
||||||
# test restart playback
|
# test restart playback
|
||||||
b.click("#player-restart")
|
b.click("#player-restart")
|
||||||
|
|
@ -250,6 +250,17 @@ class TestApplication(MachineCase):
|
||||||
assert b.attr(".dragnpan", "scrollTop") != 0
|
assert b.attr(".dragnpan", "scrollTop") != 0
|
||||||
assert b.attr(".dragnpan", "scrollLeft") != 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__":
|
if __name__ == "__main__":
|
||||||
test_main()
|
test_main()
|
||||||
|
|
|
||||||
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue