Tests are failure prone

Bug #1576706 reported by Charles Butler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kibana (Juju Charms Collection)
Fix Released
Undecided
Unassigned

Bug Description

I plan on re-visiting this bug, pardon the sketch notes, I'll refactor later.

11-scale-elastic.py will only ever work on the first execution. If the test env is configured to not rest for example, the test will fail every subsequent run.

This is problematic, and the test should be refactored to use a polling scenario to ensure the data transmission succeeded and has fully registered in elastic search.

It should then further more evaluate rather than assume that it was the only agent transmitting data, so examine the data set and find a unique ID that was sent to elastic search? (area for improvement)

see linked PR that raises the details: https://code.launchpad.net/~lazypower/charms/trusty/kibana/add-dashboard-loader-action/+merge/289684

Related branches

description: updated
Revision history for this message
Konstantinos Tsakalozos (kos.tsakalozos) wrote :

Hi there, here is a patch you can consider for this issue.

Revision history for this message
Charles Butler (lazypower) wrote :

Thanks for the patch Konstantinos!

I've applied this and published it at cs:~containers/trusty/kibana-3

Changed in kibana (Juju Charms Collection):
status: New → Fix Committed
Changed in kibana (Juju Charms Collection):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.