]> source.dussan.org Git - sonarqube.git/blob
1cb1269f6ddcf0ade6169a34368e2b1e94511802
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`it should render correctly for azure 1`] = `
4 <Fragment>
5   <div
6     className="settings-definition"
7   >
8     <div
9       className="settings-definition-left"
10     >
11       <label
12         className="h3"
13         htmlFor="azure.project"
14       >
15         settings.pr_decoration.binding.form.azure.project
16         <MandatoryFieldMarker />
17       </label>
18       <div
19         className="markdown small spacer-top"
20       >
21         <FormattedMessage
22           defaultMessage="settings.pr_decoration.binding.form.azure.project.help"
23           id="settings.pr_decoration.binding.form.azure.project.help"
24           values={Object {}}
25         />
26         <div
27           className="spacer-top nowrap"
28         >
29           example
30           : 
31           <em>
32             <strong>
33               My Project
34             </strong>
35           </em>
36         </div>
37       </div>
38     </div>
39     <div
40       className="settings-definition-right padded-top"
41     >
42       <input
43         className="input-super-large big-spacer-top"
44         id="azure.project"
45         maxLength={256}
46         name="azure.project"
47         onChange={[Function]}
48         type="text"
49         value=""
50       />
51     </div>
52   </div>
53   <div
54     className="settings-definition"
55   >
56     <div
57       className="settings-definition-left"
58     >
59       <label
60         className="h3"
61         htmlFor="azure.repository"
62       >
63         settings.pr_decoration.binding.form.azure.repository
64         <MandatoryFieldMarker />
65       </label>
66       <div
67         className="markdown small spacer-top"
68       >
69         <FormattedMessage
70           defaultMessage="settings.pr_decoration.binding.form.azure.repository.help"
71           id="settings.pr_decoration.binding.form.azure.repository.help"
72           values={Object {}}
73         />
74         <div
75           className="spacer-top nowrap"
76         >
77           example
78           : 
79           <em>
80             <strong>
81               My Repository
82             </strong>
83           </em>
84         </div>
85       </div>
86     </div>
87     <div
88       className="settings-definition-right padded-top"
89     >
90       <input
91         className="input-super-large big-spacer-top"
92         id="azure.repository"
93         maxLength={256}
94         name="azure.repository"
95         onChange={[Function]}
96         type="text"
97         value=""
98       />
99     </div>
100   </div>
101 </Fragment>
102 `;
103
104 exports[`it should render correctly for bitbucket 1`] = `
105 <Fragment>
106   <div
107     className="settings-definition"
108   >
109     <div
110       className="settings-definition-left"
111     >
112       <label
113         className="h3"
114         htmlFor="bitbucket.repository"
115       >
116         settings.pr_decoration.binding.form.bitbucket.repository
117         <MandatoryFieldMarker />
118       </label>
119       <div
120         className="markdown small spacer-top"
121       >
122         <FormattedMessage
123           defaultMessage="settings.pr_decoration.binding.form.bitbucket.repository.help"
124           id="settings.pr_decoration.binding.form.bitbucket.repository.help"
125           values={Object {}}
126         />
127         <div
128           className="spacer-top nowrap"
129         >
130           example
131           : 
132           <em>
133             https://bb.company.com/projects/
134             <strong>
135               MY_PROJECT_KEY
136             </strong>
137             /repos/my-repository-slug/browse
138           </em>
139         </div>
140       </div>
141     </div>
142     <div
143       className="settings-definition-right padded-top"
144     >
145       <input
146         className="input-super-large big-spacer-top"
147         id="bitbucket.repository"
148         maxLength={256}
149         name="bitbucket.repository"
150         onChange={[Function]}
151         type="text"
152         value=""
153       />
154     </div>
155   </div>
156   <div
157     className="settings-definition"
158   >
159     <div
160       className="settings-definition-left"
161     >
162       <label
163         className="h3"
164         htmlFor="bitbucket.slug"
165       >
166         settings.pr_decoration.binding.form.bitbucket.slug
167         <MandatoryFieldMarker />
168       </label>
169       <div
170         className="markdown small spacer-top"
171       >
172         <FormattedMessage
173           defaultMessage="settings.pr_decoration.binding.form.bitbucket.slug.help"
174           id="settings.pr_decoration.binding.form.bitbucket.slug.help"
175           values={Object {}}
176         />
177         <div
178           className="spacer-top nowrap"
179         >
180           example
181           : 
182           <em>
183             https://bb.company.com/projects/MY_PROJECT_KEY/repos/
184             <strong>
185               my-repository-slug
186             </strong>
187             /browse
188           </em>
189         </div>
190       </div>
191     </div>
192     <div
193       className="settings-definition-right padded-top"
194     >
195       <input
196         className="input-super-large big-spacer-top"
197         id="bitbucket.slug"
198         maxLength={256}
199         name="bitbucket.slug"
200         onChange={[Function]}
201         type="text"
202         value=""
203       />
204     </div>
205   </div>
206 </Fragment>
207 `;
208
209 exports[`it should render correctly for bitbucket if an instance URL is provided 1`] = `
210 <Fragment>
211   <div
212     className="settings-definition"
213   >
214     <div
215       className="settings-definition-left"
216     >
217       <label
218         className="h3"
219         htmlFor="bitbucket.repository"
220       >
221         settings.pr_decoration.binding.form.bitbucket.repository
222         <MandatoryFieldMarker />
223       </label>
224       <div
225         className="markdown small spacer-top"
226       >
227         <FormattedMessage
228           defaultMessage="settings.pr_decoration.binding.form.bitbucket.repository.help"
229           id="settings.pr_decoration.binding.form.bitbucket.repository.help"
230           values={Object {}}
231         />
232         <div
233           className="spacer-top nowrap"
234         >
235           example
236           : 
237           <em>
238             http://bbs.example.com/projects/
239             <strong>
240               MY_PROJECT_KEY
241             </strong>
242             /repos/my-repository-slug/browse
243           </em>
244         </div>
245       </div>
246     </div>
247     <div
248       className="settings-definition-right padded-top"
249     >
250       <input
251         className="input-super-large big-spacer-top"
252         id="bitbucket.repository"
253         maxLength={256}
254         name="bitbucket.repository"
255         onChange={[Function]}
256         type="text"
257         value=""
258       />
259     </div>
260   </div>
261   <div
262     className="settings-definition"
263   >
264     <div
265       className="settings-definition-left"
266     >
267       <label
268         className="h3"
269         htmlFor="bitbucket.slug"
270       >
271         settings.pr_decoration.binding.form.bitbucket.slug
272         <MandatoryFieldMarker />
273       </label>
274       <div
275         className="markdown small spacer-top"
276       >
277         <FormattedMessage
278           defaultMessage="settings.pr_decoration.binding.form.bitbucket.slug.help"
279           id="settings.pr_decoration.binding.form.bitbucket.slug.help"
280           values={Object {}}
281         />
282         <div
283           className="spacer-top nowrap"
284         >
285           example
286           : 
287           <em>
288             http://bbs.example.com/projects/MY_PROJECT_KEY/repos/
289             <strong>
290               my-repository-slug
291             </strong>
292             /browse
293           </em>
294         </div>
295       </div>
296     </div>
297     <div
298       className="settings-definition-right padded-top"
299     >
300       <input
301         className="input-super-large big-spacer-top"
302         id="bitbucket.slug"
303         maxLength={256}
304         name="bitbucket.slug"
305         onChange={[Function]}
306         type="text"
307         value=""
308       />
309     </div>
310   </div>
311 </Fragment>
312 `;
313
314 exports[`it should render correctly for bitbucketcloud 1`] = `
315 <Fragment>
316   <div
317     className="settings-definition"
318   >
319     <div
320       className="settings-definition-left"
321     >
322       <label
323         className="h3"
324         htmlFor="bitbucketcloud.repository"
325       >
326         settings.pr_decoration.binding.form.bitbucketcloud.repository
327         <MandatoryFieldMarker />
328       </label>
329       <div
330         className="markdown small spacer-top"
331       >
332         <FormattedMessage
333           defaultMessage="settings.pr_decoration.binding.form.bitbucketcloud.repository.help"
334           id="settings.pr_decoration.binding.form.bitbucketcloud.repository.help"
335           values={Object {}}
336         />
337         <div
338           className="spacer-top nowrap"
339         >
340           example
341           : 
342           <em>
343             https://bitbucket.org/my-workspace/
344             <strong>
345               my-repository-slug
346             </strong>
347           </em>
348         </div>
349       </div>
350     </div>
351     <div
352       className="settings-definition-right padded-top"
353     >
354       <input
355         className="input-super-large big-spacer-top"
356         id="bitbucketcloud.repository"
357         maxLength={256}
358         name="bitbucketcloud.repository"
359         onChange={[Function]}
360         type="text"
361         value=""
362       />
363     </div>
364   </div>
365 </Fragment>
366 `;
367
368 exports[`it should render correctly for github 1`] = `
369 <Fragment>
370   <div
371     className="settings-definition"
372   >
373     <div
374       className="settings-definition-left"
375     >
376       <label
377         className="h3"
378         htmlFor="github.repository"
379       >
380         settings.pr_decoration.binding.form.github.repository
381         <MandatoryFieldMarker />
382       </label>
383       <div
384         className="markdown small spacer-top"
385       >
386         <FormattedMessage
387           defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
388           id="settings.pr_decoration.binding.form.github.repository.help"
389           values={Object {}}
390         />
391         <div
392           className="spacer-top nowrap"
393         >
394           example
395           : 
396           <em>
397             https://github.com/
398             <strong>
399               sonarsource/sonarqube
400             </strong>
401           </em>
402         </div>
403       </div>
404     </div>
405     <div
406       className="settings-definition-right padded-top"
407     >
408       <input
409         className="input-super-large big-spacer-top"
410         id="github.repository"
411         maxLength={256}
412         name="github.repository"
413         onChange={[Function]}
414         type="text"
415         value=""
416       />
417     </div>
418   </div>
419   <div
420     className="settings-definition"
421   >
422     <div
423       className="settings-definition-left"
424     >
425       <label
426         className="h3"
427         htmlFor="github.summary_comment_setting"
428       >
429         settings.pr_decoration.binding.form.github.summary_comment_setting
430       </label>
431       <div
432         className="markdown small spacer-top"
433       >
434         <FormattedMessage
435           defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
436           id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
437           values={Object {}}
438         />
439       </div>
440     </div>
441     <div
442       className="settings-definition-right padded-top"
443     >
444       <div
445         className="display-flex-center big-spacer-top"
446       >
447         <InputForBoolean
448           isDefault={true}
449           name="github.summary_comment_setting"
450           onChange={[Function]}
451           value={true}
452         />
453       </div>
454     </div>
455   </div>
456 </Fragment>
457 `;
458
459 exports[`it should render correctly for github if an instance URL is provided 1`] = `
460 <Fragment>
461   <div
462     className="settings-definition"
463   >
464     <div
465       className="settings-definition-left"
466     >
467       <label
468         className="h3"
469         htmlFor="github.repository"
470       >
471         settings.pr_decoration.binding.form.github.repository
472         <MandatoryFieldMarker />
473       </label>
474       <div
475         className="markdown small spacer-top"
476       >
477         <FormattedMessage
478           defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
479           id="settings.pr_decoration.binding.form.github.repository.help"
480           values={Object {}}
481         />
482         <div
483           className="spacer-top nowrap"
484         >
485           example
486           : 
487           <em>
488             http://example.com/
489             <strong>
490               sonarsource/sonarqube
491             </strong>
492           </em>
493         </div>
494       </div>
495     </div>
496     <div
497       className="settings-definition-right padded-top"
498     >
499       <input
500         className="input-super-large big-spacer-top"
501         id="github.repository"
502         maxLength={256}
503         name="github.repository"
504         onChange={[Function]}
505         type="text"
506         value=""
507       />
508     </div>
509   </div>
510   <div
511     className="settings-definition"
512   >
513     <div
514       className="settings-definition-left"
515     >
516       <label
517         className="h3"
518         htmlFor="github.summary_comment_setting"
519       >
520         settings.pr_decoration.binding.form.github.summary_comment_setting
521       </label>
522       <div
523         className="markdown small spacer-top"
524       >
525         <FormattedMessage
526           defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
527           id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
528           values={Object {}}
529         />
530       </div>
531     </div>
532     <div
533       className="settings-definition-right padded-top"
534     >
535       <div
536         className="display-flex-center big-spacer-top"
537       >
538         <InputForBoolean
539           isDefault={true}
540           name="github.summary_comment_setting"
541           onChange={[Function]}
542           value={true}
543         />
544       </div>
545     </div>
546   </div>
547 </Fragment>
548 `;
549
550 exports[`it should render correctly for github if an instance URL is provided 2`] = `
551 <Fragment>
552   <div
553     className="settings-definition"
554   >
555     <div
556       className="settings-definition-left"
557     >
558       <label
559         className="h3"
560         htmlFor="github.repository"
561       >
562         settings.pr_decoration.binding.form.github.repository
563         <MandatoryFieldMarker />
564       </label>
565       <div
566         className="markdown small spacer-top"
567       >
568         <FormattedMessage
569           defaultMessage="settings.pr_decoration.binding.form.github.repository.help"
570           id="settings.pr_decoration.binding.form.github.repository.help"
571           values={Object {}}
572         />
573         <div
574           className="spacer-top nowrap"
575         >
576           example
577           : 
578           <em>
579             https://github.com/
580             <strong>
581               sonarsource/sonarqube
582             </strong>
583           </em>
584         </div>
585       </div>
586     </div>
587     <div
588       className="settings-definition-right padded-top"
589     >
590       <input
591         className="input-super-large big-spacer-top"
592         id="github.repository"
593         maxLength={256}
594         name="github.repository"
595         onChange={[Function]}
596         type="text"
597         value=""
598       />
599     </div>
600   </div>
601   <div
602     className="settings-definition"
603   >
604     <div
605       className="settings-definition-left"
606     >
607       <label
608         className="h3"
609         htmlFor="github.summary_comment_setting"
610       >
611         settings.pr_decoration.binding.form.github.summary_comment_setting
612       </label>
613       <div
614         className="markdown small spacer-top"
615       >
616         <FormattedMessage
617           defaultMessage="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
618           id="settings.pr_decoration.binding.form.github.summary_comment_setting.help"
619           values={Object {}}
620         />
621       </div>
622     </div>
623     <div
624       className="settings-definition-right padded-top"
625     >
626       <div
627         className="display-flex-center big-spacer-top"
628       >
629         <InputForBoolean
630           isDefault={true}
631           name="github.summary_comment_setting"
632           onChange={[Function]}
633           value={true}
634         />
635       </div>
636     </div>
637   </div>
638 </Fragment>
639 `;
640
641 exports[`it should render correctly for gitlab 1`] = `
642 <Fragment>
643   <div
644     className="settings-definition"
645   >
646     <div
647       className="settings-definition-left"
648     >
649       <label
650         className="h3"
651         htmlFor="gitlab.repository"
652       >
653         settings.pr_decoration.binding.form.gitlab.repository
654         <MandatoryFieldMarker />
655       </label>
656       <div
657         className="markdown small spacer-top"
658       >
659         <FormattedMessage
660           defaultMessage="settings.pr_decoration.binding.form.gitlab.repository.help"
661           id="settings.pr_decoration.binding.form.gitlab.repository.help"
662           values={Object {}}
663         />
664         <div
665           className="spacer-top nowrap"
666         >
667           example
668           : 
669           <em>
670             <strong>
671               123456
672             </strong>
673           </em>
674         </div>
675       </div>
676     </div>
677     <div
678       className="settings-definition-right padded-top"
679     >
680       <input
681         className="input-super-large big-spacer-top"
682         id="gitlab.repository"
683         maxLength={256}
684         name="gitlab.repository"
685         onChange={[Function]}
686         type="text"
687         value=""
688       />
689     </div>
690   </div>
691 </Fragment>
692 `;
693
694 exports[`should render the monorepo field when the feature is supported 1`] = `
695 <Fragment>
696   <div
697     className="settings-definition"
698   >
699     <div
700       className="settings-definition-left"
701     >
702       <label
703         className="h3"
704         htmlFor="azure.project"
705       >
706         settings.pr_decoration.binding.form.azure.project
707         <MandatoryFieldMarker />
708       </label>
709       <div
710         className="markdown small spacer-top"
711       >
712         <FormattedMessage
713           defaultMessage="settings.pr_decoration.binding.form.azure.project.help"
714           id="settings.pr_decoration.binding.form.azure.project.help"
715           values={Object {}}
716         />
717         <div
718           className="spacer-top nowrap"
719         >
720           example
721           : 
722           <em>
723             <strong>
724               My Project
725             </strong>
726           </em>
727         </div>
728       </div>
729     </div>
730     <div
731       className="settings-definition-right padded-top"
732     >
733       <input
734         className="input-super-large big-spacer-top"
735         id="azure.project"
736         maxLength={256}
737         name="azure.project"
738         onChange={[Function]}
739         type="text"
740         value=""
741       />
742     </div>
743   </div>
744   <div
745     className="settings-definition"
746   >
747     <div
748       className="settings-definition-left"
749     >
750       <label
751         className="h3"
752         htmlFor="azure.repository"
753       >
754         settings.pr_decoration.binding.form.azure.repository
755         <MandatoryFieldMarker />
756       </label>
757       <div
758         className="markdown small spacer-top"
759       >
760         <FormattedMessage
761           defaultMessage="settings.pr_decoration.binding.form.azure.repository.help"
762           id="settings.pr_decoration.binding.form.azure.repository.help"
763           values={Object {}}
764         />
765         <div
766           className="spacer-top nowrap"
767         >
768           example
769           : 
770           <em>
771             <strong>
772               My Repository
773             </strong>
774           </em>
775         </div>
776       </div>
777     </div>
778     <div
779       className="settings-definition-right padded-top"
780     >
781       <input
782         className="input-super-large big-spacer-top"
783         id="azure.repository"
784         maxLength={256}
785         name="azure.repository"
786         onChange={[Function]}
787         type="text"
788         value=""
789       />
790     </div>
791   </div>
792   <div
793     className="settings-definition"
794   >
795     <div
796       className="settings-definition-left"
797     >
798       <label
799         className="h3"
800         htmlFor="monorepo"
801       >
802         settings.pr_decoration.binding.form.monorepo
803       </label>
804       <div
805         className="markdown small spacer-top"
806       >
807         <FormattedMessage
808           defaultMessage="settings.pr_decoration.binding.form.monorepo.help"
809           id="settings.pr_decoration.binding.form.monorepo.help"
810           values={
811             Object {
812               "doc_link": <Link
813                 onlyActiveOnIndex={false}
814                 style={Object {}}
815                 target="_blank"
816                 to="/documentation/analysis/azuredevops-integration/"
817               >
818                 learn_more
819               </Link>,
820             }
821           }
822         />
823       </div>
824     </div>
825     <div
826       className="settings-definition-right padded-top"
827     >
828       <div
829         className="display-flex-center big-spacer-top"
830       >
831         <InputForBoolean
832           isDefault={true}
833           name="monorepo"
834           onChange={[Function]}
835           value={false}
836         />
837       </div>
838     </div>
839   </div>
840 </Fragment>
841 `;