ftest/templates/index.html

52 lines
1.4 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>
<code>{{ test.result.container.logs | 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 %}
<code>{{ init.container.logs | linebreaksbr }}</code>
</details>
{% endfor %} {% endif %}
</body>
<style>
.test__name {
display: inline;
}
</style>
</html>