Change pass-fail priority 29/76229/5
authorLuis Gomez <ecelgp@gmail.com>
Tue, 18 Sep 2018 16:55:07 +0000 (09:55 -0700)
committerLuis Gomez <ecelgp@gmail.com>
Wed, 19 Sep 2018 14:42:54 +0000 (14:42 +0000)
Change-Id: Ia42fb318373388f27d5b1209d5f625612e1f9126
Signed-off-by: Luis Gomez <ecelgp@gmail.com>
csit/scripts/push_to_elk.py
dashboard/viz_config.yaml

index f08b888345c1b912e644d3fea19a004789d94d6b..a1a085e28687dab55e33a32b010ab68d55a3fda6 100755 (executable)
@@ -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 = {
index 44aa7f044c2606cb2defc98a853362bfe05bc3e2..43990533093a09ce2f3c06506d4b5af3a41e0721 100644 (file)
@@ -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