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