aboutsummaryrefslogtreecommitdiffstats
path: root/tools/report/cloud_report_rst.jinja
diff options
context:
space:
mode:
authorSridhar K. N. Rao <sridhar.rao@spirent.com>2021-04-28 18:39:15 +0530
committerSridhar K. N. Rao <sridhar.rao@spirent.com>2021-06-15 21:26:56 +0530
commit76878eb2972ad789c2eb7fe3f2eefa285b3e72d6 (patch)
tree05ffec474c2181429d4139b3ff721516b87b8170 /tools/report/cloud_report_rst.jinja
parent300d9f201aba1b8e30387138acaba79a72502d82 (diff)
[WIP] - Reporting support for Openstack and K8S Test Runs.
This patch adds support for generating report when tests are run for K8S and openstack. Added cloud-information gathering tool. Move the tool to report folder. Call the save cloud information from vsperf. Fixed issues reported by Al. Additional fixes. JIRA: VINEPERF-644 Signed-off-by: Sridhar K. N. Rao <sridhar.rao@spirent.com> Change-Id: I4aea2e52a4c6700f80624f3e1828b74a108e03ba
Diffstat (limited to 'tools/report/cloud_report_rst.jinja')
-rw-r--r--tools/report/cloud_report_rst.jinja49
1 files changed, 49 insertions, 0 deletions
diff --git a/tools/report/cloud_report_rst.jinja b/tools/report/cloud_report_rst.jinja
new file mode 100644
index 00000000..7ecd0297
--- /dev/null
+++ b/tools/report/cloud_report_rst.jinja
@@ -0,0 +1,49 @@
+{#
+ Copyright (c) 2016-2017 Intel corporation.
+
+ All rights reserved. This program and the accompanying materials
+ are made available under the terms of the Apache License, Version 2.0
+ which accompanies this distribution, and is available at
+ http://www.apache.org/licenses/LICENSE-2.0
+#}
+
+Test ID: {{ tests[0].ID }}
+--------------------------
+
+Test Environment
+~~~~~~~~~~~~~~~~
+Below is the environment that the test was performed in:
+
+* CLOUD: {{tests[0].env.os}}
+
+Below are test details:
+
+* Test ID: {{ "%s"|format(tests[0].id) }}
+* Description: {{ "%s"|format(tests[0].conf['Description']) }}
+* Deployment: {{ "%s"|format(tests[0].deployment) }}
+* Traffic type: {{ "%s"|format(tests[0].result['type']) }}
+* Bidirectional : {{ "%s"|format(tests[0].conf['bidir']) }}
+{%- if tests[0].result['tunnel_type'] %}
+* Tunnel type: {{ "%s"|format(tests[0].result['tunnel_type']) }}
+{%- endif %}
+{% for test in tests %}
+Test results for packet size: {{ "%s"|format(test.result['packet_size']) }}
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+A detailed summary of the main results is outlined below.
+
+Results/Metrics Collected
+^^^^^^^^^^^^^^^^^^^^^^^^^
+
+The following are the metrics obtained during this test:
+
+========================== ==================================
+ Metric Result
+========================== ==================================
+{%- for item, value in test.result.items() %}
+{{ "%-30s %30s"|format(item,value)}}
+{%- endfor %}
+========================== ==================================
+
+.. There must be blank lines around to ensure correct formatting.
+
+