From: Luis Gomez Date: Tue, 18 Sep 2018 16:55:07 +0000 (-0700) Subject: Change pass-fail priority X-Git-Tag: pre-potassium~550 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=8aa479ef72409ee4b08f8239a92d19fe81718363;p=integration%2Ftest.git Change pass-fail priority Change-Id: Ia42fb318373388f27d5b1209d5f625612e1f9126 Signed-off-by: Luis Gomez --- diff --git a/csit/scripts/push_to_elk.py b/csit/scripts/push_to_elk.py index f08b888345..a1a085e286 100755 --- a/csit/scripts/push_to_elk.py +++ b/csit/scripts/push_to_elk.py @@ -132,6 +132,16 @@ def JSONToString(jobj): return retval +# Clear .kibana index before pushing visualizations +try: + index = '.kibana' + res = es.indices.delete(index=index) +except Exception as e: + print(e) + # raise e + print('Unable to push data to ElasticSearch') + + # Create and push index-pattern to be used by visualizations INDEX_PATTERN_BODY = { diff --git a/dashboard/viz_config.yaml b/dashboard/viz_config.yaml index 44aa7f044c..4399053309 100644 --- a/dashboard/viz_config.yaml +++ b/dashboard/viz_config.yaml @@ -8,14 +8,6 @@ opendaylight-test-feature: position: left title: No. of test cases series: - pass: - data_type: histogram - mode: stacked - field: pass-tests - label: Pass tests - schema: metric - value_axis: 1 - color: green fail: data_type: histogram mode: stacked @@ -24,6 +16,14 @@ opendaylight-test-feature: schema: metric value_axis: 1 color: red + pass: + data_type: histogram + mode: stacked + field: pass-tests + label: Pass tests + schema: metric + value_axis: 1 + color: green build: field: test-run label: Build Number