forked from HappyFaceMonitoring/HappyFaceModules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Functional_Tests.html
177 lines (174 loc) · 7.14 KB
/
Functional_Tests.html
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
175
176
## -*- coding: utf-8 -*-
<%inherit file="/module_base.html" />
<%def name="content()">
% if module.dataset['status_aft'] != 1 or queues_aft_always_visible:
<p>Analysis queues:</p>
% if queues_aft_always_visible:
<table class="TableData">
<tr class="TableHeader">
<td>Queue Name (always visible)</td>
<td>Status</td>
<td>Link</td>
</tr>
% for detail in aft_details:
% if detail['queue_name'] in queues_aft_always_visible:
% if detail['status'] != '100' and detail['status'] != 'no-test':
<tr bgcolor=#FF6464>
% elif detail['status'] == '100':
<tr bgcolor=#AAFFAA>
% elif detail['status'] == 'no-test':
<tr bgcolor=#EEEEEE>
% endif
<td>${detail['queue_name']}</td>
<td>${detail['status']}</td>
<td><a href="${detail['link']}">Details</a></td>
</tr>
% endif
% endfor
% endif
% if module.dataset['status_aft'] != 1:
<%
queues_not_always_visible_and_bad = []
for detail in aft_details:
if (detail['queue_name'] not in queues_aft_always_visible) and detail['status'] != '100' and detail['status'] != 'no-test':
queues_not_always_visible_and_bad.append(detail['queue_name'])
%>
% if queues_not_always_visible_and_bad:
<table class="TableData">
<tr class="TableHeader">
<td>Queue Name</td>
<td>Status</td>
<td>Link</td>
</tr>
% for detail in aft_details:
% if detail['status'] != '100' and detail['status'] != 'no-test' and (detail['queue_name'] not in queues_aft_always_visible):
<tr bgcolor=#FF6464>
<td>${detail['queue_name']}</td>
<td>${detail['status']}</td>
<td><a href="${detail['link']}">Details</a></td>
</tr>
% endif
% endfor
% endif
% endif
</table>
% endif
% if not aft_details:
<p>No queues specified for analysis functional tests.</p>
% else:
% if module.dataset['status_aft'] == 1:
<p>All analysis queues are good.</p>
% endif
<input type="button" value="show/hide good queues" onfocus="this.blur()" onclick="$('#${module.instance_name}_details_aft').slideToggle()" />
<div id="${module.instance_name}_details_aft" style="display:none;">
<table class="TableData">
<tr class="TableHeader">
<td>Queue Name</td>
<td>Status</td>
<td>Link</td>
</tr>
% for detail in aft_details:
% if detail['queue_name'] not in queues_aft_always_visible:
% if detail['status'] == '100' or detail['status'] == 'no-test':
% if detail['status'] == '100':
<tr bgcolor=#AAFFAA>
% elif detail['status'] == 'no-test':
<tr bgcolor=#EEEEEE>
% endif
<td>${detail['queue_name']}</td>
<td>${detail['status']}</td>
<td><a href="${detail['link']}">Details</a></td>
</tr>
% endif
% endif
% endfor
</table>
</div>
</p>
% endif
% if module.dataset['status_pft'] != 1 or queues_pft_always_visible:
<p>Production queues:</p>
% if queues_pft_always_visible:
<table class="TableData">
<tr class="TableHeader">
<td>Queue Name (always visible)</td>
<td>Status</td>
<td>Link</td>
</tr>
% for detail in pft_details:
% if detail['queue_name'] in queues_pft_always_visible:
% if detail['status'] != '100' and detail['status'] != 'no-test':
<tr bgcolor=#FF6464>
% elif detail['status'] == '100':
<tr bgcolor=#AAFFAA>
% elif detail['status'] == 'no-test':
<tr bgcolor=#EEEEEE>
% endif
<td>${detail['queue_name']}</td>
<td>${detail['status']}</td>
<td><a href="${detail['link']}">Details</a></td>
</tr>
% endif
% endfor
% endif
% if module.dataset['status_pft'] != 1:
<%
queues_not_always_visible_and_bad = []
for detail in pft_details:
if (detail['queue_name'] not in queues_pft_always_visible) and detail['status'] != '100' and detail['status'] != 'no-test':
queues_not_always_visible_and_bad.append(detail['queue_name'])
%>
% if queues_not_always_visible_and_bad:
<table class="TableData">
<tr class="TableHeader">
<td>Queue Name</td>
<td>Status</td>
<td>Link</td>
</tr>
% for detail in pft_details:
% if detail['status'] != '100' and detail['status'] != 'no-test' and (detail['queue_name'] not in queues_pft_always_visible):
<tr bgcolor=#FF6464>
<td>${detail['queue_name']}</td>
<td>${detail['status']}</td>
<td><a href="${detail['link']}">Details</a></td>
</tr>
% endif
% endfor
% endif
% endif
</table>
% endif
% if not pft_details:
<p>No queues specified for production functional tests.</p>
% else:
% if module.dataset['status_pft'] == 1:
<p>All production queues are good.</p>
% endif
<input type="button" value="show/hide good queues" onfocus="this.blur()" onclick="$('#${module.instance_name}_details_pft').slideToggle()" />
<div id="${module.instance_name}_details_pft" style="display:none;">
<table class="TableData">
<tr class="TableHeader">
<td>Queue Name</td>
<td>Status</td>
<td>Link</td>
</tr>
% for detail in pft_details:
% if detail['queue_name'] not in queues_pft_always_visible:
% if detail['status'] == '100' or detail['status'] == 'no-test':
% if detail['status'] == '100':
<tr bgcolor=#AAFFAA>
% elif detail['status'] == 'no-test':
<tr bgcolor=#EEEEEE>
% endif
<td>${detail['queue_name']}</td>
<td>${detail['status']}</td>
<td><a href="${detail['link']}">Details</a></td>
</tr>
% endif
% endif
% endfor
</table>
</div>
</p>
% endif
</%def>