]> source.dussan.org Git - sonarqube.git/blob
32cc7f8bcb184e18fd963d0fbc568398b9c00008
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correclty 1`] = `
4 <li>
5   <DrilldownLink
6     className="overview-quality-gate-condition overview-quality-gate-condition-error"
7     component="abcd-key"
8     inNewCodePeriod={false}
9     metric="open_issues"
10   >
11     <div
12       className="overview-quality-gate-condition-container display-flex-center"
13     >
14       <div
15         className="overview-quality-gate-condition-value text-center spacer-right"
16       >
17         <Measure
18           decimals={2}
19           metricKey="open_issues"
20           metricType="INT"
21           value="3"
22         />
23       </div>
24       <div>
25         <span
26           className="overview-quality-gate-condition-metric little-spacer-right"
27         >
28           <IssueTypeIcon
29             className="little-spacer-right"
30             query="open_issues"
31           />
32           metric.open_issues.name
33         </span>
34         <span
35           className="little-spacer-top small text-muted"
36         >
37           quality_gates.operator.GT
38            
39           1
40         </span>
41       </div>
42     </div>
43   </DrilldownLink>
44 </li>
45 `;
46
47 exports[`should render correclty 2`] = `
48 <li>
49   <ForwardRef(Link)
50     className="overview-quality-gate-condition overview-quality-gate-condition-error"
51     to={
52       {
53         "hash": "",
54         "pathname": "/project/issues",
55         "search": "?resolved=false&types=BUG&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&id=abcd-key",
56       }
57     }
58   >
59     <div
60       className="overview-quality-gate-condition-container display-flex-center"
61     >
62       <div
63         className="overview-quality-gate-condition-value text-center spacer-right"
64       >
65         <Measure
66           decimals={2}
67           metricKey="reliability_rating"
68           metricType="RATING"
69           value="3"
70         />
71       </div>
72       <div>
73         <span
74           className="overview-quality-gate-condition-metric little-spacer-right"
75         >
76           <IssueTypeIcon
77             className="little-spacer-right"
78             query="reliability_rating"
79           />
80           metric.reliability_rating.name
81         </span>
82         <span
83           className="little-spacer-top small text-muted"
84         >
85           quality_gates.operator.GT.rating
86            
87           A
88         </span>
89       </div>
90     </div>
91   </ForwardRef(Link)>
92 </li>
93 `;
94
95 exports[`should render correclty 3`] = `
96 <li>
97   <ForwardRef(Link)
98     className="overview-quality-gate-condition overview-quality-gate-condition-error"
99     to={
100       {
101         "hash": "",
102         "pathname": "/project/issues",
103         "search": "?resolved=false&types=VULNERABILITY&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&id=abcd-key",
104       }
105     }
106   >
107     <div
108       className="overview-quality-gate-condition-container display-flex-center"
109     >
110       <div
111         className="overview-quality-gate-condition-value text-center spacer-right"
112       >
113         <Measure
114           decimals={2}
115           metricKey="security_rating"
116           metricType="RATING"
117           value="3"
118         />
119       </div>
120       <div>
121         <span
122           className="overview-quality-gate-condition-metric little-spacer-right"
123         >
124           <IssueTypeIcon
125             className="little-spacer-right"
126             query="security_rating"
127           />
128           metric.security_rating.name
129         </span>
130         <span
131           className="little-spacer-top small text-muted"
132         >
133           quality_gates.operator.GT.rating
134            
135           A
136         </span>
137       </div>
138     </div>
139   </ForwardRef(Link)>
140 </li>
141 `;
142
143 exports[`should render correclty 4`] = `
144 <li>
145   <ForwardRef(Link)
146     className="overview-quality-gate-condition overview-quality-gate-condition-error"
147     to={
148       {
149         "hash": "",
150         "pathname": "/project/issues",
151         "search": "?resolved=false&types=CODE_SMELL&id=abcd-key",
152       }
153     }
154   >
155     <div
156       className="overview-quality-gate-condition-container display-flex-center"
157     >
158       <div
159         className="overview-quality-gate-condition-value text-center spacer-right"
160       >
161         <Measure
162           decimals={2}
163           metricKey="sqale_rating"
164           metricType="RATING"
165           value="3"
166         />
167       </div>
168       <div>
169         <span
170           className="overview-quality-gate-condition-metric little-spacer-right"
171         >
172           <IssueTypeIcon
173             className="little-spacer-right"
174             query="sqale_rating"
175           />
176           metric.sqale_rating.name
177         </span>
178         <span
179           className="little-spacer-top small text-muted"
180         >
181           quality_gates.operator.GT.rating
182            
183           A
184         </span>
185       </div>
186     </div>
187   </ForwardRef(Link)>
188 </li>
189 `;
190
191 exports[`should render correclty 5`] = `
192 <li>
193   <ForwardRef(Link)
194     className="overview-quality-gate-condition overview-quality-gate-condition-error"
195     to={
196       {
197         "hash": "",
198         "pathname": "/project/issues",
199         "search": "?resolved=false&types=BUG&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&inNewCodePeriod=true&id=abcd-key",
200       }
201     }
202   >
203     <div
204       className="overview-quality-gate-condition-container display-flex-center"
205     >
206       <div
207         className="overview-quality-gate-condition-value text-center spacer-right"
208       >
209         <Measure
210           decimals={2}
211           metricKey="new_reliability_rating"
212           metricType="RATING"
213           value="3"
214         />
215       </div>
216       <div>
217         <span
218           className="overview-quality-gate-condition-metric little-spacer-right"
219         >
220           <IssueTypeIcon
221             className="little-spacer-right"
222             query="new_reliability_rating"
223           />
224           metric.new_reliability_rating.name
225         </span>
226         <span
227           className="little-spacer-top small text-muted"
228         >
229           quality_gates.operator.GT.rating
230            
231           A
232         </span>
233       </div>
234     </div>
235   </ForwardRef(Link)>
236 </li>
237 `;
238
239 exports[`should render correclty 6`] = `
240 <li>
241   <ForwardRef(Link)
242     className="overview-quality-gate-condition overview-quality-gate-condition-error"
243     to={
244       {
245         "hash": "",
246         "pathname": "/project/issues",
247         "search": "?resolved=false&types=VULNERABILITY&severities=BLOCKER%2CCRITICAL%2CMAJOR%2CMINOR&inNewCodePeriod=true&id=abcd-key",
248       }
249     }
250   >
251     <div
252       className="overview-quality-gate-condition-container display-flex-center"
253     >
254       <div
255         className="overview-quality-gate-condition-value text-center spacer-right"
256       >
257         <Measure
258           decimals={2}
259           metricKey="new_security_rating"
260           metricType="RATING"
261           value="3"
262         />
263       </div>
264       <div>
265         <span
266           className="overview-quality-gate-condition-metric little-spacer-right"
267         >
268           <IssueTypeIcon
269             className="little-spacer-right"
270             query="new_security_rating"
271           />
272           metric.new_security_rating.name
273         </span>
274         <span
275           className="little-spacer-top small text-muted"
276         >
277           quality_gates.operator.GT.rating
278            
279           A
280         </span>
281       </div>
282     </div>
283   </ForwardRef(Link)>
284 </li>
285 `;
286
287 exports[`should render correclty 7`] = `
288 <li>
289   <ForwardRef(Link)
290     className="overview-quality-gate-condition overview-quality-gate-condition-error"
291     to={
292       {
293         "hash": "",
294         "pathname": "/project/issues",
295         "search": "?resolved=false&types=CODE_SMELL&inNewCodePeriod=true&id=abcd-key",
296       }
297     }
298   >
299     <div
300       className="overview-quality-gate-condition-container display-flex-center"
301     >
302       <div
303         className="overview-quality-gate-condition-value text-center spacer-right"
304       >
305         <Measure
306           decimals={2}
307           metricKey="new_maintainability_rating"
308           metricType="RATING"
309           value="3"
310         />
311       </div>
312       <div>
313         <span
314           className="overview-quality-gate-condition-metric little-spacer-right"
315         >
316           <IssueTypeIcon
317             className="little-spacer-right"
318             query="new_maintainability_rating"
319           />
320           metric.new_maintainability_rating.name
321         </span>
322         <span
323           className="little-spacer-top small text-muted"
324         >
325           quality_gates.operator.GT.rating
326            
327           A
328         </span>
329       </div>
330     </div>
331   </ForwardRef(Link)>
332 </li>
333 `;
334
335 exports[`should render correclty 8`] = `
336 <li>
337   <ForwardRef(Link)
338     className="overview-quality-gate-condition overview-quality-gate-condition-error"
339     to={
340       {
341         "hash": "",
342         "pathname": "/security_hotspots",
343         "search": "?id=abcd-key",
344       }
345     }
346   >
347     <div
348       className="overview-quality-gate-condition-container display-flex-center"
349     >
350       <div
351         className="overview-quality-gate-condition-value text-center spacer-right"
352       >
353         <Measure
354           decimals={2}
355           metricKey="security_hotspots_reviewed"
356           metricType="RATING"
357           value="3"
358         />
359       </div>
360       <div>
361         <span
362           className="overview-quality-gate-condition-metric little-spacer-right"
363         >
364           <IssueTypeIcon
365             className="little-spacer-right"
366             query="security_hotspots_reviewed"
367           />
368           metric.security_hotspots_reviewed.name
369         </span>
370         <span
371           className="little-spacer-top small text-muted"
372         >
373           quality_gates.operator.GT.rating
374            
375           A
376         </span>
377       </div>
378     </div>
379   </ForwardRef(Link)>
380 </li>
381 `;
382
383 exports[`should render correclty 9`] = `
384 <li>
385   <ForwardRef(Link)
386     className="overview-quality-gate-condition overview-quality-gate-condition-error"
387     to={
388       {
389         "hash": "",
390         "pathname": "/security_hotspots",
391         "search": "?id=abcd-key&inNewCodePeriod=true",
392       }
393     }
394   >
395     <div
396       className="overview-quality-gate-condition-container display-flex-center"
397     >
398       <div
399         className="overview-quality-gate-condition-value text-center spacer-right"
400       >
401         <Measure
402           decimals={2}
403           metricKey="new_security_hotspots_reviewed"
404           metricType="RATING"
405           value="3"
406         />
407       </div>
408       <div>
409         <span
410           className="overview-quality-gate-condition-metric little-spacer-right"
411         >
412           <IssueTypeIcon
413             className="little-spacer-right"
414             query="new_security_hotspots_reviewed"
415           />
416           metric.new_security_hotspots_reviewed.name
417         </span>
418         <span
419           className="little-spacer-top small text-muted"
420         >
421           quality_gates.operator.GT.rating
422            
423           A
424         </span>
425       </div>
426     </div>
427   </ForwardRef(Link)>
428 </li>
429 `;
430
431 exports[`should work with branch 1`] = `
432 <li>
433   <ForwardRef(Link)
434     className="overview-quality-gate-condition overview-quality-gate-condition-error"
435     to={
436       {
437         "hash": "",
438         "pathname": "/project/issues",
439         "search": "?resolved=false&branch=branch-6.7&types=CODE_SMELL&inNewCodePeriod=true&id=abcd-key",
440       }
441     }
442   >
443     <div
444       className="overview-quality-gate-condition-container display-flex-center"
445     >
446       <div
447         className="overview-quality-gate-condition-value text-center spacer-right"
448       >
449         <Measure
450           decimals={2}
451           metricKey="new_maintainability_rating"
452           metricType="RATING"
453           value="3"
454         />
455       </div>
456       <div>
457         <span
458           className="overview-quality-gate-condition-metric little-spacer-right"
459         >
460           <IssueTypeIcon
461             className="little-spacer-right"
462             query="new_maintainability_rating"
463           />
464           metric.new_maintainability_rating.name
465         </span>
466         <span
467           className="little-spacer-top small text-muted"
468         >
469           quality_gates.operator.GT.rating
470            
471           A
472         </span>
473       </div>
474     </div>
475   </ForwardRef(Link)>
476 </li>
477 `;