aboutsummaryrefslogtreecommitdiffstats
path: root/src/onaptests/templates/reporting/reporting.html.j2
diff options
context:
space:
mode:
authormrichomme <morgan.richomme@orange.com>2020-10-08 13:46:50 +0200
committermrichomme <morgan.richomme@orange.com>2020-10-08 15:46:29 +0200
commit5ef0bbbda90428378a08d416481b90047f5ba870 (patch)
tree033870a5864fc9a7f2d172bb5cbf4c29660e4302 /src/onaptests/templates/reporting/reporting.html.j2
parentd1d44781c7d03c8794dd626184f77d9836264212 (diff)
Add reporting page creation in pythonsdk-tests
Issue-ID: TEST-269 Signed-off-by: mrichomme <morgan.richomme@orange.com> Change-Id: I4ab0a2f7a1a1e98ae5d05166c6aa06212d24eeae Signed-off-by: mrichomme <morgan.richomme@orange.com>
Diffstat (limited to 'src/onaptests/templates/reporting/reporting.html.j2')
-rw-r--r--src/onaptests/templates/reporting/reporting.html.j243
1 files changed, 43 insertions, 0 deletions
diff --git a/src/onaptests/templates/reporting/reporting.html.j2 b/src/onaptests/templates/reporting/reporting.html.j2
new file mode 100644
index 0000000..5dafe3f
--- /dev/null
+++ b/src/onaptests/templates/reporting/reporting.html.j2
@@ -0,0 +1,43 @@
+{% extends "base.html.j2" %}
+{% block title %}Summary{% endblock %}
+{% block content %}
+ {{ summary('Results', "", [
+ { 'title': 'Pythonsdk Tests', 'failing': (failing_steps | length), 'total': (steps | length)},
+ ])
+ }}
+
+ <section class="section">
+ <div class="container">
+ <h1 class="title is-1">
+ {{ usecase }}
+ </h1>
+ Description: {{ details }}
+ <br>
+ Components: {{ components }}
+ <br>
+ <a href="{{ log_path }}"> Logs</a>
+ <!-- Pythonsdk steps table -->
+ <div id="helms" class="table-container">
+ <table class="table is-fullwidth is-striped is-hoverable">
+ <thead>
+ <tr>
+ <th>Name</th>
+ <th>Status</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for step,value in steps.items() %}
+ <tr {% if value == 'FAIL' %} class="has-background-danger" {% else %} class="has-background-success-light" {% endif %}>
+ <td>
+ {{ step }}
+ </td>
+ <td>
+ {{ value }}
+ </td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+ </div>
+{% endblock %}