ftest/templates/index.html

73 lines
2.1 KiB
HTML

<!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>
<h5>STDOUT</h5>
<code>{{ test.result.container.logs.stdout | linebreaksbr }}</code>
<h5>STDERR</h5>
<code>{{ test.result.container.logs.stderr | linebreaksbr }}</code>
</details>
{% endfor %} {% endfor %} {% if payload.results.init_containers %}
<h2>Initialization Workflow</h2>
{% for init in payload.results.init_containers %}
<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>
{% endfor %} {% endif %}
<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 %}
</body>
<style>
.test__name {
display: inline;
}
</style>
</html>