From 8aa479ef72409ee4b08f8239a92d19fe81718363 Mon Sep 17 00:00:00 2001 From: Luis Gomez Date: Tue, 18 Sep 2018 09:55:07 -0700 Subject: [PATCH] Change pass-fail priority Change-Id: Ia42fb318373388f27d5b1209d5f625612e1f9126 Signed-off-by: Luis Gomez --- csit/scripts/push_to_elk.py | 10 ++++++++++ dashboard/viz_config.yaml | 16 ++++++++-------- 2 files changed, 18 insertions(+), 8 deletions(-) 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 -- 2.36.6