]> source.dussan.org Git - sonarqube.git/blob
7b3ef2604058e1dcde6c71c8b9d7fc9eba990753
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for bitbucket 1`] = `
4 <Fragment>
5   <li>
6     <FormattedMessage
7       defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
8       id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
9       values={
10         {
11           "link": <ForwardRef(Link)
12             target="_blank"
13             to="http://bbs.enterprise.com/plugins/servlet/webhooks/projects/PROJECT_KEY/repos/repo-slug/create"
14           >
15             onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.link
16           </ForwardRef(Link)>,
17         }
18       }
19     />
20     <ul
21       className="list-styled"
22     >
23       <li>
24         <LabelActionPair
25           translationKey="onboarding.tutorial.with.jenkins.webhook.step1.name"
26         />
27       </li>
28       <li
29         className="abs-width-600"
30       >
31         <p>
32           <LabelActionPair
33             translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url"
34           />
35         </p>
36         <CodeSnippet
37           isOneLine={true}
38           snippet="***JENKINS_SERVER_URL***/bitbucket-scmsource-hook/notify?server_url=http://bbs.enterprise.com"
39         />
40         <Alert
41           variant="info"
42         >
43           onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url.warning
44         </Alert>
45       </li>
46     </ul>
47   </li>
48   <li>
49     <SentenceWithHighlights
50       highlightKeys={
51         [
52           "events",
53         ]
54       }
55       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2"
56     />
57     <ul
58       className="list-styled"
59     >
60       <li>
61         <LabelActionPair
62           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2.repo"
63         />
64       </li>
65       <li>
66         <LabelActionPair
67           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2.pr"
68         />
69       </li>
70     </ul>
71   </li>
72   <li>
73     <SentenceWithHighlights
74       highlightKeys={
75         [
76           "create",
77         ]
78       }
79       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step3"
80     />
81   </li>
82 </Fragment>
83 `;
84
85 exports[`should render correctly for bitbucket: with branches disabled 1`] = `
86 <Fragment>
87   <li>
88     <FormattedMessage
89       defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
90       id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
91       values={
92         {
93           "link": <ForwardRef(Link)
94             target="_blank"
95             to="http://bbs.enterprise.com/plugins/servlet/webhooks/projects/PROJECT_KEY/repos/repo-slug/create"
96           >
97             onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.link
98           </ForwardRef(Link)>,
99         }
100       }
101     />
102     <ul
103       className="list-styled"
104     >
105       <li>
106         <LabelActionPair
107           translationKey="onboarding.tutorial.with.jenkins.webhook.step1.name"
108         />
109       </li>
110       <li
111         className="abs-width-600"
112       >
113         <p>
114           <LabelActionPair
115             translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url"
116           />
117         </p>
118         <CodeSnippet
119           isOneLine={true}
120           snippet="***JENKINS_SERVER_URL***/job/***JENKINS_JOB_NAME***/build?token=***JENKINS_BUILD_TRIGGER_TOKEN***"
121         />
122       </li>
123     </ul>
124   </li>
125   <li>
126     <SentenceWithHighlights
127       highlightKeys={
128         [
129           "events",
130         ]
131       }
132       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2"
133     />
134     <ul
135       className="list-styled"
136     >
137       <li>
138         <LabelActionPair
139           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2.repo"
140         />
141       </li>
142     </ul>
143   </li>
144   <li>
145     <SentenceWithHighlights
146       highlightKeys={
147         [
148           "create",
149         ]
150       }
151       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step3"
152     />
153   </li>
154 </Fragment>
155 `;
156
157 exports[`should render correctly for bitbucket: with no alm binding 1`] = `
158 <Fragment>
159   <li>
160     <FormattedMessage
161       defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
162       id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
163       values={
164         {
165           "link": <strong>
166             onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.link
167           </strong>,
168         }
169       }
170     />
171     <ul
172       className="list-styled"
173     >
174       <li>
175         <LabelActionPair
176           translationKey="onboarding.tutorial.with.jenkins.webhook.step1.name"
177         />
178       </li>
179       <li
180         className="abs-width-600"
181       >
182         <p>
183           <LabelActionPair
184             translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url"
185           />
186         </p>
187         <CodeSnippet
188           isOneLine={true}
189           snippet="***JENKINS_SERVER_URL***/bitbucket-scmsource-hook/notify?server_url=***BITBUCKET_URL***"
190         />
191         <Alert
192           variant="info"
193         >
194           onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url.warning
195         </Alert>
196       </li>
197     </ul>
198   </li>
199   <li>
200     <SentenceWithHighlights
201       highlightKeys={
202         [
203           "events",
204         ]
205       }
206       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2"
207     />
208     <ul
209       className="list-styled"
210     >
211       <li>
212         <LabelActionPair
213           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2.repo"
214         />
215       </li>
216       <li>
217         <LabelActionPair
218           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step2.pr"
219         />
220       </li>
221     </ul>
222   </li>
223   <li>
224     <SentenceWithHighlights
225       highlightKeys={
226         [
227           "create",
228         ]
229       }
230       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step3"
231     />
232   </li>
233 </Fragment>
234 `;
235
236 exports[`should render correctly for bitbucketcloud 1`] = `
237 <Fragment>
238   <li>
239     <FormattedMessage
240       defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
241       id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
242       values={
243         {
244           "link": <ForwardRef(Link)
245             target="_blank"
246             to="http://bitbucket.org/workspace/repo-slug/admin/addon/admin/bitbucket-webhooks/bb-webhooks-repo-admin"
247           >
248             onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step1.link
249           </ForwardRef(Link)>,
250         }
251       }
252     />
253     <ul
254       className="list-styled"
255     >
256       <li>
257         <LabelActionPair
258           translationKey="onboarding.tutorial.with.jenkins.webhook.step1.name"
259         />
260       </li>
261       <li
262         className="abs-width-600"
263       >
264         <p>
265           <LabelActionPair
266             translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url"
267           />
268         </p>
269         <CodeSnippet
270           isOneLine={true}
271           snippet="***JENKINS_SERVER_URL***/bitbucket-scmsource-hook/notify"
272         />
273       </li>
274     </ul>
275   </li>
276   <li>
277     <SentenceWithHighlights
278       highlightKeys={
279         [
280           "triggers",
281           "option",
282         ]
283       }
284       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2"
285     />
286     <ul
287       className="list-styled"
288     >
289       <li>
290         <LabelActionPair
291           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2.repo"
292         />
293       </li>
294       <li>
295         <LabelActionPair
296           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2.pr"
297         />
298       </li>
299     </ul>
300   </li>
301   <li>
302     <SentenceWithHighlights
303       highlightKeys={
304         [
305           "save",
306         ]
307       }
308       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step3"
309     />
310   </li>
311 </Fragment>
312 `;
313
314 exports[`should render correctly for bitbucketcloud: with branches disabled 1`] = `
315 <Fragment>
316   <li>
317     <FormattedMessage
318       defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
319       id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
320       values={
321         {
322           "link": <ForwardRef(Link)
323             target="_blank"
324             to="http://bitbucket.org/workspace/repo-slug/admin/addon/admin/bitbucket-webhooks/bb-webhooks-repo-admin"
325           >
326             onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step1.link
327           </ForwardRef(Link)>,
328         }
329       }
330     />
331     <ul
332       className="list-styled"
333     >
334       <li>
335         <LabelActionPair
336           translationKey="onboarding.tutorial.with.jenkins.webhook.step1.name"
337         />
338       </li>
339       <li
340         className="abs-width-600"
341       >
342         <p>
343           <LabelActionPair
344             translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url"
345           />
346         </p>
347         <CodeSnippet
348           isOneLine={true}
349           snippet="***JENKINS_SERVER_URL***/job/***JENKINS_JOB_NAME***/build?token=***JENKINS_BUILD_TRIGGER_TOKEN***"
350         />
351       </li>
352     </ul>
353   </li>
354   <li>
355     <SentenceWithHighlights
356       highlightKeys={
357         [
358           "triggers",
359           "option",
360         ]
361       }
362       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2"
363     />
364     <ul
365       className="list-styled"
366     >
367       <li>
368         <LabelActionPair
369           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2.repo"
370         />
371       </li>
372     </ul>
373   </li>
374   <li>
375     <SentenceWithHighlights
376       highlightKeys={
377         [
378           "save",
379         ]
380       }
381       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step3"
382     />
383   </li>
384 </Fragment>
385 `;
386
387 exports[`should render correctly for bitbucketcloud: with no alm binding 1`] = `
388 <Fragment>
389   <li>
390     <FormattedMessage
391       defaultMessage="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
392       id="onboarding.tutorial.with.jenkins.webhook.step1.sentence"
393       values={
394         {
395           "link": <strong>
396             onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step1.link
397           </strong>,
398         }
399       }
400     />
401     <ul
402       className="list-styled"
403     >
404       <li>
405         <LabelActionPair
406           translationKey="onboarding.tutorial.with.jenkins.webhook.step1.name"
407         />
408       </li>
409       <li
410         className="abs-width-600"
411       >
412         <p>
413           <LabelActionPair
414             translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucket.step1.url"
415           />
416         </p>
417         <CodeSnippet
418           isOneLine={true}
419           snippet="***JENKINS_SERVER_URL***/bitbucket-scmsource-hook/notify"
420         />
421       </li>
422     </ul>
423   </li>
424   <li>
425     <SentenceWithHighlights
426       highlightKeys={
427         [
428           "triggers",
429           "option",
430         ]
431       }
432       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2"
433     />
434     <ul
435       className="list-styled"
436     >
437       <li>
438         <LabelActionPair
439           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2.repo"
440         />
441       </li>
442       <li>
443         <LabelActionPair
444           translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step2.pr"
445         />
446       </li>
447     </ul>
448   </li>
449   <li>
450     <SentenceWithHighlights
451       highlightKeys={
452         [
453           "save",
454         ]
455       }
456       translationKey="onboarding.tutorial.with.jenkins.webhook.bitbucketcloud.step3"
457     />
458   </li>
459 </Fragment>
460 `;