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