]> source.dussan.org Git - sonarqube.git/blob
07602310f0f685023ec8f3c45234bdb8ddb84f81
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <Fragment>
5   <span>
6     onboarding.build
7   </span>
8   <RenderOptions
9     name="buildTechnology"
10     onCheck={[Function]}
11     optionLabelKey="onboarding.build"
12     options={
13       Array [
14         "dotnet",
15         "maven",
16         "gradle",
17         "other",
18       ]
19     }
20   />
21   <ol
22     className="list-styled big-spacer-top"
23   />
24 </Fragment>
25 `;
26
27 exports[`should render correctly: dotnet 1`] = `
28 <Fragment>
29   <span>
30     onboarding.build
31   </span>
32   <RenderOptions
33     checked="dotnet"
34     name="buildTechnology"
35     onCheck={[Function]}
36     optionLabelKey="onboarding.build"
37     options={
38       Array [
39         "dotnet",
40         "maven",
41         "gradle",
42         "other",
43       ]
44     }
45   />
46   <ol
47     className="list-styled big-spacer-top"
48   >
49     <li>
50       <SentenceWithHighlights
51         highlightKeys={
52           Array [
53             "pipeline",
54             "task",
55             "before",
56           ]
57         }
58         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare"
59       />
60     </li>
61     <ul
62       className="list-styled"
63     >
64       <li>
65         <SentenceWithHighlights
66           highlightKeys={
67             Array [
68               "endpoint",
69             ]
70           }
71           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint"
72         />
73       </li>
74       <li>
75         <FormattedMessage
76           defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
77           id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
78           values={
79             Object {
80               "run_analysis_value": <strong>
81                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.values.dotnet
82               </strong>,
83               "section": <strong>
84                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.section
85               </strong>,
86             }
87           }
88         />
89       </li>
90       <li>
91         <FormattedMessage
92           defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.run.key.sentence"
93           id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.run.key.sentence"
94           values={
95             Object {
96               "button": <ClipboardIconButton
97                 copyValue="my-project"
98               />,
99               "key": <code
100                 className="rule"
101               >
102                 my-project
103               </code>,
104             }
105           }
106         />
107       </li>
108     </ul>
109     <li>
110       <SentenceWithHighlights
111         highlightKeys={
112           Array [
113             "task",
114             "after",
115           ]
116         }
117         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.run"
118       />
119     </li>
120     <li>
121       <SentenceWithHighlights
122         highlightKeys={
123           Array [
124             "task",
125           ]
126         }
127         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg"
128       />
129       <Alert
130         className="spacer-top"
131         variant="info"
132       >
133         onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.info.sentence1
134       </Alert>
135     </li>
136     <li>
137       <SentenceWithHighlights
138         highlightKeys={
139           Array [
140             "tab",
141             "continuous_integration",
142           ]
143         }
144         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration"
145       />
146     </li>
147     <hr />
148     <FormattedMessage
149       defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
150       id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
151       values={
152         Object {
153           "link": <Link
154             onlyActiveOnIndex={false}
155             style={Object {}}
156             target="_blank"
157             to="/documentation/analysis/azuredevops-integration/"
158           >
159             onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection.link
160           </Link>,
161         }
162       }
163     />
164   </ol>
165 </Fragment>
166 `;
167
168 exports[`should render correctly: gradle 1`] = `
169 <Fragment>
170   <span>
171     onboarding.build
172   </span>
173   <RenderOptions
174     checked="gradle"
175     name="buildTechnology"
176     onCheck={[Function]}
177     optionLabelKey="onboarding.build"
178     options={
179       Array [
180         "dotnet",
181         "maven",
182         "gradle",
183         "other",
184       ]
185     }
186   />
187   <ol
188     className="list-styled big-spacer-top"
189   >
190     <li>
191       <SentenceWithHighlights
192         highlightKeys={
193           Array [
194             "pipeline",
195             "task",
196             "before",
197           ]
198         }
199         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare"
200       />
201     </li>
202     <ul
203       className="list-styled"
204     >
205       <li>
206         <SentenceWithHighlights
207           highlightKeys={
208             Array [
209               "endpoint",
210             ]
211           }
212           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint"
213         />
214       </li>
215       <li>
216         <FormattedMessage
217           defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
218           id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
219           values={
220             Object {
221               "run_analysis_value": <strong>
222                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.values.gradle
223               </strong>,
224               "section": <strong>
225                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.section
226               </strong>,
227             }
228           }
229         />
230       </li>
231       <li>
232         <SentenceWithHighlights
233           highlightKeys={
234             Array [
235               "section",
236               "properties",
237             ]
238           }
239           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.advanced_properties"
240         />
241         :
242         <CodeSnippet
243           snippet="# Additional properties that will be passed to the scanner,
244 # Put one key=value per line, example:
245 # sonar.exclusions=**/*.bin
246 sonar.projectKey=my-project"
247         />
248       </li>
249     </ul>
250     <li>
251       onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.onboarding.build.gradle
252     </li>
253     <ul
254       className="list-styled big-spacer-bottom"
255     >
256       <li>
257         <SentenceWithHighlights
258           highlightKeys={
259             Array [
260               "section",
261               "option",
262             ]
263           }
264           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.settings"
265         />
266       </li>
267     </ul>
268     <li>
269       <SentenceWithHighlights
270         highlightKeys={
271           Array [
272             "task",
273           ]
274         }
275         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg"
276       />
277       <Alert
278         className="spacer-top"
279         variant="info"
280       >
281         onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.info.sentence1
282       </Alert>
283     </li>
284     <li>
285       <SentenceWithHighlights
286         highlightKeys={
287           Array [
288             "tab",
289             "continuous_integration",
290           ]
291         }
292         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration"
293       />
294     </li>
295     <hr />
296     <FormattedMessage
297       defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
298       id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
299       values={
300         Object {
301           "link": <Link
302             onlyActiveOnIndex={false}
303             style={Object {}}
304             target="_blank"
305             to="/documentation/analysis/azuredevops-integration/"
306           >
307             onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection.link
308           </Link>,
309         }
310       }
311     />
312   </ol>
313 </Fragment>
314 `;
315
316 exports[`should render correctly: maven 1`] = `
317 <Fragment>
318   <span>
319     onboarding.build
320   </span>
321   <RenderOptions
322     checked="maven"
323     name="buildTechnology"
324     onCheck={[Function]}
325     optionLabelKey="onboarding.build"
326     options={
327       Array [
328         "dotnet",
329         "maven",
330         "gradle",
331         "other",
332       ]
333     }
334   />
335   <ol
336     className="list-styled big-spacer-top"
337   >
338     <li>
339       <SentenceWithHighlights
340         highlightKeys={
341           Array [
342             "pipeline",
343             "task",
344             "before",
345           ]
346         }
347         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare"
348       />
349     </li>
350     <ul
351       className="list-styled"
352     >
353       <li>
354         <SentenceWithHighlights
355           highlightKeys={
356             Array [
357               "endpoint",
358             ]
359           }
360           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint"
361         />
362       </li>
363       <li>
364         <FormattedMessage
365           defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
366           id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
367           values={
368             Object {
369               "run_analysis_value": <strong>
370                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.values.maven
371               </strong>,
372               "section": <strong>
373                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.section
374               </strong>,
375             }
376           }
377         />
378       </li>
379       <li>
380         <SentenceWithHighlights
381           highlightKeys={
382             Array [
383               "section",
384               "properties",
385             ]
386           }
387           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.advanced_properties"
388         />
389         :
390         <CodeSnippet
391           snippet="# Additional properties that will be passed to the scanner,
392 # Put one key=value per line, example:
393 # sonar.exclusions=**/*.bin
394 sonar.projectKey=my-project"
395         />
396       </li>
397     </ul>
398     <li>
399       onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.onboarding.build.maven
400     </li>
401     <ul
402       className="list-styled big-spacer-bottom"
403     >
404       <li>
405         <SentenceWithHighlights
406           highlightKeys={
407             Array [
408               "section",
409               "option",
410             ]
411           }
412           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.java.settings"
413         />
414       </li>
415     </ul>
416     <li>
417       <SentenceWithHighlights
418         highlightKeys={
419           Array [
420             "task",
421           ]
422         }
423         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg"
424       />
425       <Alert
426         className="spacer-top"
427         variant="info"
428       >
429         onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.info.sentence1
430       </Alert>
431     </li>
432     <li>
433       <SentenceWithHighlights
434         highlightKeys={
435           Array [
436             "tab",
437             "continuous_integration",
438           ]
439         }
440         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration"
441       />
442     </li>
443     <hr />
444     <FormattedMessage
445       defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
446       id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
447       values={
448         Object {
449           "link": <Link
450             onlyActiveOnIndex={false}
451             style={Object {}}
452             target="_blank"
453             to="/documentation/analysis/azuredevops-integration/"
454           >
455             onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection.link
456           </Link>,
457         }
458       }
459     />
460   </ol>
461 </Fragment>
462 `;
463
464 exports[`should render correctly: other 1`] = `
465 <Fragment>
466   <span>
467     onboarding.build
468   </span>
469   <RenderOptions
470     checked="other"
471     name="buildTechnology"
472     onCheck={[Function]}
473     optionLabelKey="onboarding.build"
474     options={
475       Array [
476         "dotnet",
477         "maven",
478         "gradle",
479         "other",
480       ]
481     }
482   />
483   <ol
484     className="list-styled big-spacer-top"
485   >
486     <li>
487       <SentenceWithHighlights
488         highlightKeys={
489           Array [
490             "pipeline",
491             "task",
492             "before",
493           ]
494         }
495         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare"
496       />
497     </li>
498     <ul
499       className="list-styled"
500     >
501       <li>
502         <SentenceWithHighlights
503           highlightKeys={
504             Array [
505               "endpoint",
506             ]
507           }
508           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.endpoint"
509         />
510       </li>
511       <li>
512         <FormattedMessage
513           defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
514           id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis"
515           values={
516             Object {
517               "run_analysis_value": <strong>
518                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.values.other
519               </strong>,
520               "section": <strong>
521                 onboarding.tutorial.with.azure_pipelines.BranchAnalysis.prepare.run_analysis.section
522               </strong>,
523             }
524           }
525         />
526       </li>
527       <li>
528         <SentenceWithHighlights
529           highlightKeys={
530             Array [
531               "mode",
532             ]
533           }
534           translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.manual"
535         />
536       </li>
537       <li>
538         <FormattedMessage
539           defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.run.key.sentence"
540           id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.run.key.sentence"
541           values={
542             Object {
543               "button": <ClipboardIconButton
544                 copyValue="my-project"
545               />,
546               "key": <code
547                 className="rule"
548               >
549                 my-project
550               </code>,
551             }
552           }
553         />
554       </li>
555     </ul>
556     <li>
557       <SentenceWithHighlights
558         highlightKeys={
559           Array [
560             "task",
561             "after",
562           ]
563         }
564         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.run"
565       />
566     </li>
567     <li>
568       <SentenceWithHighlights
569         highlightKeys={
570           Array [
571             "task",
572           ]
573         }
574         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg"
575       />
576       <Alert
577         className="spacer-top"
578         variant="info"
579       >
580         onboarding.tutorial.with.azure_pipelines.BranchAnalysis.publish_qg.info.sentence1
581       </Alert>
582     </li>
583     <li>
584       <SentenceWithHighlights
585         highlightKeys={
586           Array [
587             "tab",
588             "continuous_integration",
589           ]
590         }
591         translationKey="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.continous_integration"
592       />
593     </li>
594     <hr />
595     <FormattedMessage
596       defaultMessage="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
597       id="onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection"
598       values={
599         Object {
600           "link": <Link
601             onlyActiveOnIndex={false}
602             style={Object {}}
603             target="_blank"
604             to="/documentation/analysis/azuredevops-integration/"
605           >
606             onboarding.tutorial.with.azure_pipelines.BranchAnalysis.branch_protection.link
607           </Link>,
608         }
609       }
610     />
611   </ol>
612 </Fragment>
613 `;