-
Notifications
You must be signed in to change notification settings - Fork 1
/
template.html.j2
174 lines (163 loc) · 9.16 KB
/
template.html.j2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<title>docker-py integration tests against Podman APIv2</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous"-->
<link rel="stylesheet" href="css/vendor/[email protected]">
<link rel="stylesheet" href="css/main.css">
</head>
<body>
<div class="container-fluid">
<h1>docker-py integration tests against Podman APIv2</h1>
<section class="row">
<div class="col-2">
<button type="button" class="btn btn-secondary" id="toggleUnsupportedTestsButton">Toggle unsupported tests</button>
</div>
</section>
<section class="row">
<table id="tests" class="table table-striped table-bordered table-hover">
<thead>
<tr>
<th scope="col" rowspan="2">
<form>
<input class="form-control" type="search" id="filterInputLeft" placeholder="Filter tests ...">
</form>
</th>
{%- for test_suite in test_suites: %}
<th class="align-top" scope="col" data-commit-date="{{ test_suite.commit_date }}" data-commit-id="{{ test_suite.commit_id }}" data-podman-version="{{ test_suite.podman_version }}" data-runtime="{{ test_suite.runtime }}">
{{ test_suite.podman_version }}
{%- if test_suite.commit_id != '': %}
{{ test_suite.commit_date.date().isoformat()}}
<a href="https://github.com/containers/podman/commit/{{ test_suite.commit_id }}" title="Commit ID: {{ test_suite.commit_id }}">{{ test_suite.commit_id[:10] }}</a>
{%- endif %}
{%- if test_suite.runtime != "runc": %}
<span class="badge bg-info">{{ test_suite.runtime }}</span>
{%- endif %}
{%- if test_suite.comment != "": %}
<span class="badge bg-warning text-dark">{{ test_suite.comment }}</span>
{%- endif %}
</th>
{%- endfor %}
<th scope="col" rowspan="2">
<form>
<input class="form-control" type="search" id="filterInputRight" placeholder="Filter tests ...">
</form>
</th>
</tr>
<tr>
{%- for test_suite in test_suites: %}
<td>
<span class="badge rounded-pill bg-danger">FAILED: {{ test_summaries_by_suite[test_suite._id].FAILED }}</span>
<span class="badge rounded-pill bg-success">PASSED: {{ test_summaries_by_suite[test_suite._id].PASSED }}</span>
<span class="badge rounded-pill bg-warning">SKIPPED: {{ test_summaries_by_suite[test_suite._id].SKIPPED }}</span>
<span class="badge bg-secondary">XFAIL: {{ test_summaries_by_suite[test_suite._id].XFAIL }}</span>
<span class="badge bg-light text-dark">XPASS: {{ test_summaries_by_suite[test_suite._id].XPASS }}</span>
<span class="badge bg-danger">ERROR: {{ test_summaries_by_suite[test_suite._id].ERROR }}</span>
<span class="badge bg-secondary">UNSUPPORTED: {{ test_summaries_by_suite[test_suite._id].UNSUPPORTED }}</span>
</td>
{%- endfor %}
</tr>
</thead>
<tbody>
{%- for test_info in test_infos: %}
<tr class="align-middle test {{ 'test-unsupported d-none' if test_infos._unsupported }}" data-test-file="{{ test_infos.test_file }}" data-test-class="{{ test_infos.test_class }}" data-test-method="{{ test_infos.test_method }}">
<th scope="row" data-test-file="{{ test_infos.test_file }}" data-test-class="{{ test_infos.test_class }}" data-test-method="{{ test_infos.test_method }}">
{{ test_info.test_name }}
{%- if test_info._unsupported: %}
<span class="badge bg-danger">unsupported</span>
{%- endif %}
</th>
{%- for test_suite in test_suites: %}
{%- set test = tests_by_name_and_suite[test_info.test_name][test_suite._id] %}
<td class="
{% if test.result == 'ERROR': %}
table-danger bg-danger text-white
{% elif test.result == 'FAILED': %}
table-danger text-danger
{% elif test.result == 'PASSED': %}
table-success text-success
{% elif test.result == 'SKIPPED': %}
table-warning text-warning
{% elif test.result == 'XFAIL': %}
table-secondary
{% else: %}
{% endif %}
result result-{{ test.result }}"
data-commit-date="{{ test.commit_date }}" data-commit-id="{{ test.commit_id }}" data-podman-version="{{ test.podman_version }}" data-result="{{ test.result }}" data-runtime="{{ test.runtime }}" data-test-file="{{ test.test_file }}" data-test-class="{{ test.test_class }}" data-test-method="{{ test.test_method }}"
>
{{ test.result }}
</td>
{%- endfor %}
<th scope="row" data-test-file="{{ test_info.test_file }}" data-test-class="{{ test_info.test_class }}" data-test-method="{{ test_info.test_method }}">
{{ test_info.test_name }}
{%- if test_info._unsupported: %}
<span class="badge bg-danger">unsupported</span>
{%- endif %}
</th>
</tr>
{%- endfor %}
</tbody>
<tfoot>
<tr>
<th scope="col" rowspan="2"></th>
{%- for test_suite in test_suites: %}
<td>
<span class="badge rounded-pill bg-danger">FAILED: {{ test_summaries_by_suite[test_suite._id].FAILED }}</span>
<span class="badge rounded-pill bg-success">PASSED: {{ test_summaries_by_suite[test_suite._id].PASSED }}</span>
<span class="badge rounded-pill bg-warning">SKIPPED: {{ test_summaries_by_suite[test_suite._id].SKIPPED }}</span>
<span class="badge bg-secondary">XFAIL: {{ test_summaries_by_suite[test_suite._id].XFAIL }}</span>
<span class="badge bg-light text-dark">XPASS: {{ test_summaries_by_suite[test_suite._id].XPASS }}</span>
<span class="badge bg-danger">ERROR: {{ test_summaries_by_suite[test_suite._id].ERROR }}</span>
<span class="badge bg-secondary">UNSUPPORTED: {{ test_summaries_by_suite[test_suite._id].UNSUPPORTED }}</span>
</td>
{%- endfor %}
<th scope="col" rowspan="2"></th>
</tr>
<tr>
{%- for test_suite in test_suites: %}
<th class="align-top" scope="col" data-commit-date="{{ test_suite.commit_date }}" data-commit-id="{{ test_suite.commit_id }}" data-podman-version="{{ test_suite.podman_version }}" data-runtime="{{ test_suite.runtime }}">
{{ test_suite.podman_version }}
{%- if test_suite.commit_id != '': %}
{{ test_suite.commit_date.date().isoformat()}}
<a href="https://github.com/containers/podman/commit/{{ test_suite.commit_id }}" title="Commit ID: {{ test_suite.commit_id }}">{{ test_suite.commit_id[:10] }}</a>
{%- endif %}
{%- if test_suite.runtime != "runc": %}
<span class="badge bg-info">{{ test_suite.runtime }}</span>
{%- endif %}
{%- if test_suite.comment != "": %}
<span class="badge bg-warning text-dark">{{ test_suite.comment }}</span>
{%- endif %}
</th>
{%- endfor %}
</tr>
</tfoot>
</table>
</section>
<section class="row p-2">
<div class="card shadow">
<div class="card-body text-muted">
<h5 class="card-title">Notes</h5>
<h6>Runtime used</h6>
<p>
Different runtimes might affect test performance. We assume that tests were run with <code>runc</code> by default and mark them with e.g. <span class="badge bg-info">crun</span> if this was not the case.
</p>
<h6>Comments/Notes</h6>
<p>
Tests that have notes have a <span class="badge bg-warning text-dark">badge looking like this</span>.
</p>
<h6>Unsupported tests</h6>
<p>
Some tests will never pass, because they test features of Docker that Podman doesn't intend to replicate (e.g. Swarm). They're marked with <span class="badge bg-danger">unsupported</span>.
</p>
</div>
</div>
</section>
</div>
<!--script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script-->
<script src="js/vendor/[email protected]"></script>
<script src="js/main.js"></script>
</body>
</html>