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