ftest/templates/index.html

74 lines
2.1 KiB
HTML
Raw Normal View History

2023-10-04 21:04:42 +05:30
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Ftest results</title>
</head>
<body>
{% for suite in payload.results.suites %}
<h1>{{ suite.suite.name }}</h1>
<p>{{ suite.suite.description }}</p>
<h2>Tests</h2>
{% for test in suite.tests %}
<details class="test">
{% if test.result.success %}
<summary><h3 class="test__name">[OK] {{ test.name }}</h3></summary>
{% else %}
<summary><h3 class="test__name">[FAILED] {{ test.name }}</h3></summary>
{% endif %}
<h4>Logs</h4>
<code>{{ test.result.logs | linebreaksbr }}</code>
<h4>Container Logs: {{ test.result.container.name }}</h4>
2023-10-05 00:37:42 +05:30
<h5>STDOUT</h5>
<code>{{ test.result.container.logs.stdout | linebreaksbr }}</code>
<h5>STDERR</h5>
<code>{{ test.result.container.logs.stderr | linebreaksbr }}</code>
2023-10-04 21:04:42 +05:30
</details>
{% endfor %} {% endfor %} {% if payload.results.init_containers %}
<h2>Initialization Workflow</h2>
{% for init in payload.results.init_containers %}
2023-10-05 00:57:36 +05:30
<details>
{% if init.success %}
<summary>
<h3 class="test__name">[OK] {{init.container.name}}</h3>
</summary>
{% else %}
<summary>
<h3 class="test__name">[FAILED] {{init.container.name}}</h3>
</summary>
{% endif %}
<h4>STDOUT</h4>
<code>{{ init.container.logs.stdout | linebreaksbr }}</code>
<h4>STDERR</h4>
<code>{{ init.container.logs.stderr | linebreaksbr }}</code>
</details>
2023-10-04 21:04:42 +05:30
{% endfor %} {% endif %}
2023-10-05 00:57:36 +05:30
<h2>Specimen Logs</h2>
{% for specimen in payload.results.specimen_logs %}
<details>
<summary>
<h3 class="test__name">{{specimen.name}}</h3>
</summary>
<h4>STDOUT</h4>
<code>{{ specimen.logs.stdout | linebreaksbr }}</code>
<h4>STDERR</h4>
<code>{{ specimen.logs.stderr | linebreaksbr }}</code>
</details>
{% endfor %}
2023-10-04 21:04:42 +05:30
</body>
<style>
.test__name {
display: inline;
}
</style>
</html>