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