]> source.dussan.org Git - sonarqube.git/blob
67963a58a3288be52a2cf5296ee7115c2a2e35fa
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display correctly for new_minor_version 1`] = `
4 <Modal
5   contentLabel="system.system_upgrade"
6   onRequestClose={[MockFunction]}
7 >
8   <div
9     className="modal-head"
10   >
11     <h2>
12       system.system_upgrade
13     </h2>
14   </div>
15   <div
16     className="modal-body"
17   >
18     <SystemUpgradeItem
19       edition="community"
20       isLTSVersion={false}
21       isPatch={false}
22       key="6.3"
23       systemUpgrades={
24         [
25           {
26             "changeLogUrl": "changelogurl",
27             "description": "Version 6.4 description",
28             "downloadUrl": "downloadurl",
29             "plugins": {},
30             "releaseDate": "2017-06-02",
31             "version": "6.4",
32           },
33           {
34             "changeLogUrl": "changelogurl",
35             "description": "Version 6.3 description",
36             "downloadUrl": "downloadurl",
37             "plugins": {},
38             "releaseDate": "2017-05-02",
39             "version": "6.3",
40           },
41         ]
42       }
43     />
44     <SystemUpgradeItem
45       edition="community"
46       isLTSVersion={false}
47       isPatch={false}
48       key="5.6.5"
49       systemUpgrades={
50         [
51           {
52             "changeLogUrl": "changelogurl",
53             "description": "Version 5.6.7 description",
54             "downloadUrl": "downloadurl",
55             "plugins": {},
56             "releaseDate": "2017-03-01",
57             "version": "5.6.7",
58           },
59           {
60             "changeLogUrl": "changelogurl",
61             "description": "Version 5.6.6 description",
62             "downloadUrl": "downloadurl",
63             "plugins": {},
64             "releaseDate": "2017-04-02",
65             "version": "5.6.6",
66           },
67           {
68             "changeLogUrl": "changelogurl",
69             "description": "Version 5.6.5 description",
70             "downloadUrl": "downloadurl",
71             "plugins": {},
72             "releaseDate": "2017-03-01",
73             "version": "5.6.5",
74           },
75         ]
76       }
77     />
78   </div>
79   <div
80     className="modal-foot"
81   >
82     <ForwardRef(Link)
83       className="pull-left link-no-underline display-flex-center"
84       target="_blank"
85       to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
86     >
87       system.see_sonarqube_downloads
88     </ForwardRef(Link)>
89     <ResetButtonLink
90       onClick={[MockFunction]}
91     >
92       cancel
93     </ResetButtonLink>
94   </div>
95 </Modal>
96 `;
97
98 exports[`should display correctly for new_patch 1`] = `
99 <Modal
100   contentLabel="system.system_upgrade"
101   onRequestClose={[MockFunction]}
102 >
103   <div
104     className="modal-head"
105   >
106     <h2>
107       system.system_upgrade
108     </h2>
109   </div>
110   <div
111     className="modal-body"
112   >
113     <Alert
114       className="it__upgrade-alert-new_patch"
115       variant="warning"
116     >
117       admin_notification.update.new_patch
118     </Alert>
119     <SystemUpgradeItem
120       edition="community"
121       isLTSVersion={false}
122       isPatch={false}
123       key="6.3"
124       systemUpgrades={
125         [
126           {
127             "changeLogUrl": "changelogurl",
128             "description": "Version 6.4 description",
129             "downloadUrl": "downloadurl",
130             "plugins": {},
131             "releaseDate": "2017-06-02",
132             "version": "6.4",
133           },
134           {
135             "changeLogUrl": "changelogurl",
136             "description": "Version 6.3 description",
137             "downloadUrl": "downloadurl",
138             "plugins": {},
139             "releaseDate": "2017-05-02",
140             "version": "6.3",
141           },
142         ]
143       }
144     />
145     <SystemUpgradeItem
146       edition="community"
147       isLTSVersion={false}
148       isPatch={true}
149       key="5.6.5"
150       systemUpgrades={
151         [
152           {
153             "changeLogUrl": "changelogurl",
154             "description": "Version 5.6.7 description",
155             "downloadUrl": "downloadurl",
156             "plugins": {},
157             "releaseDate": "2017-03-01",
158             "version": "5.6.7",
159           },
160           {
161             "changeLogUrl": "changelogurl",
162             "description": "Version 5.6.6 description",
163             "downloadUrl": "downloadurl",
164             "plugins": {},
165             "releaseDate": "2017-04-02",
166             "version": "5.6.6",
167           },
168           {
169             "changeLogUrl": "changelogurl",
170             "description": "Version 5.6.5 description",
171             "downloadUrl": "downloadurl",
172             "plugins": {},
173             "releaseDate": "2017-03-01",
174             "version": "5.6.5",
175           },
176         ]
177       }
178     />
179   </div>
180   <div
181     className="modal-foot"
182   >
183     <ForwardRef(Link)
184       className="pull-left link-no-underline display-flex-center"
185       target="_blank"
186       to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
187     >
188       system.see_sonarqube_downloads
189     </ForwardRef(Link)>
190     <ResetButtonLink
191       onClick={[MockFunction]}
192     >
193       cancel
194     </ResetButtonLink>
195   </div>
196 </Modal>
197 `;
198
199 exports[`should display correctly for pre_lts 1`] = `
200 <Modal
201   contentLabel="system.system_upgrade"
202   onRequestClose={[MockFunction]}
203 >
204   <div
205     className="modal-head"
206   >
207     <h2>
208       system.system_upgrade
209     </h2>
210   </div>
211   <div
212     className="modal-body"
213   >
214     <Alert
215       className="it__upgrade-alert-pre_lts"
216       variant="warning"
217     >
218       admin_notification.update.pre_lts
219     </Alert>
220     <SystemUpgradeItem
221       edition="community"
222       isLTSVersion={false}
223       isPatch={false}
224       key="6.3"
225       systemUpgrades={
226         [
227           {
228             "changeLogUrl": "changelogurl",
229             "description": "Version 6.4 description",
230             "downloadUrl": "downloadurl",
231             "plugins": {},
232             "releaseDate": "2017-06-02",
233             "version": "6.4",
234           },
235           {
236             "changeLogUrl": "changelogurl",
237             "description": "Version 6.3 description",
238             "downloadUrl": "downloadurl",
239             "plugins": {},
240             "releaseDate": "2017-05-02",
241             "version": "6.3",
242           },
243         ]
244       }
245     />
246     <SystemUpgradeItem
247       edition="community"
248       isLTSVersion={false}
249       isPatch={false}
250       key="5.6.5"
251       systemUpgrades={
252         [
253           {
254             "changeLogUrl": "changelogurl",
255             "description": "Version 5.6.7 description",
256             "downloadUrl": "downloadurl",
257             "plugins": {},
258             "releaseDate": "2017-03-01",
259             "version": "5.6.7",
260           },
261           {
262             "changeLogUrl": "changelogurl",
263             "description": "Version 5.6.6 description",
264             "downloadUrl": "downloadurl",
265             "plugins": {},
266             "releaseDate": "2017-04-02",
267             "version": "5.6.6",
268           },
269           {
270             "changeLogUrl": "changelogurl",
271             "description": "Version 5.6.5 description",
272             "downloadUrl": "downloadurl",
273             "plugins": {},
274             "releaseDate": "2017-03-01",
275             "version": "5.6.5",
276           },
277         ]
278       }
279     />
280   </div>
281   <div
282     className="modal-foot"
283   >
284     <ForwardRef(Link)
285       className="pull-left link-no-underline display-flex-center"
286       target="_blank"
287       to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
288     >
289       system.see_sonarqube_downloads
290     </ForwardRef(Link)>
291     <ResetButtonLink
292       onClick={[MockFunction]}
293     >
294       cancel
295     </ResetButtonLink>
296   </div>
297 </Modal>
298 `;
299
300 exports[`should display correctly for previous_lts 1`] = `
301 <Modal
302   contentLabel="system.system_upgrade"
303   onRequestClose={[MockFunction]}
304 >
305   <div
306     className="modal-head"
307   >
308     <h2>
309       system.system_upgrade
310     </h2>
311   </div>
312   <div
313     className="modal-body"
314   >
315     <Alert
316       className="it__upgrade-alert-previous_lts"
317       variant="error"
318     >
319       admin_notification.update.previous_lts
320     </Alert>
321     <SystemUpgradeItem
322       edition="community"
323       isLTSVersion={false}
324       isPatch={false}
325       key="6.3"
326       systemUpgrades={
327         [
328           {
329             "changeLogUrl": "changelogurl",
330             "description": "Version 6.4 description",
331             "downloadUrl": "downloadurl",
332             "plugins": {},
333             "releaseDate": "2017-06-02",
334             "version": "6.4",
335           },
336           {
337             "changeLogUrl": "changelogurl",
338             "description": "Version 6.3 description",
339             "downloadUrl": "downloadurl",
340             "plugins": {},
341             "releaseDate": "2017-05-02",
342             "version": "6.3",
343           },
344         ]
345       }
346     />
347     <SystemUpgradeItem
348       edition="community"
349       isLTSVersion={false}
350       isPatch={false}
351       key="5.6.5"
352       systemUpgrades={
353         [
354           {
355             "changeLogUrl": "changelogurl",
356             "description": "Version 5.6.7 description",
357             "downloadUrl": "downloadurl",
358             "plugins": {},
359             "releaseDate": "2017-03-01",
360             "version": "5.6.7",
361           },
362           {
363             "changeLogUrl": "changelogurl",
364             "description": "Version 5.6.6 description",
365             "downloadUrl": "downloadurl",
366             "plugins": {},
367             "releaseDate": "2017-04-02",
368             "version": "5.6.6",
369           },
370           {
371             "changeLogUrl": "changelogurl",
372             "description": "Version 5.6.5 description",
373             "downloadUrl": "downloadurl",
374             "plugins": {},
375             "releaseDate": "2017-03-01",
376             "version": "5.6.5",
377           },
378         ]
379       }
380     />
381   </div>
382   <div
383     className="modal-foot"
384   >
385     <ForwardRef(Link)
386       className="pull-left link-no-underline display-flex-center"
387       target="_blank"
388       to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
389     >
390       system.see_sonarqube_downloads
391     </ForwardRef(Link)>
392     <ResetButtonLink
393       onClick={[MockFunction]}
394     >
395       cancel
396     </ResetButtonLink>
397   </div>
398 </Modal>
399 `;
400
401 exports[`should display correctly for undefined 1`] = `
402 <Modal
403   contentLabel="system.system_upgrade"
404   onRequestClose={[MockFunction]}
405 >
406   <div
407     className="modal-head"
408   >
409     <h2>
410       system.system_upgrade
411     </h2>
412   </div>
413   <div
414     className="modal-body"
415   >
416     <SystemUpgradeItem
417       edition="community"
418       isLTSVersion={false}
419       isPatch={false}
420       key="6.3"
421       systemUpgrades={
422         [
423           {
424             "changeLogUrl": "changelogurl",
425             "description": "Version 6.4 description",
426             "downloadUrl": "downloadurl",
427             "plugins": {},
428             "releaseDate": "2017-06-02",
429             "version": "6.4",
430           },
431           {
432             "changeLogUrl": "changelogurl",
433             "description": "Version 6.3 description",
434             "downloadUrl": "downloadurl",
435             "plugins": {},
436             "releaseDate": "2017-05-02",
437             "version": "6.3",
438           },
439         ]
440       }
441     />
442     <SystemUpgradeItem
443       edition="community"
444       isLTSVersion={false}
445       isPatch={false}
446       key="5.6.5"
447       systemUpgrades={
448         [
449           {
450             "changeLogUrl": "changelogurl",
451             "description": "Version 5.6.7 description",
452             "downloadUrl": "downloadurl",
453             "plugins": {},
454             "releaseDate": "2017-03-01",
455             "version": "5.6.7",
456           },
457           {
458             "changeLogUrl": "changelogurl",
459             "description": "Version 5.6.6 description",
460             "downloadUrl": "downloadurl",
461             "plugins": {},
462             "releaseDate": "2017-04-02",
463             "version": "5.6.6",
464           },
465           {
466             "changeLogUrl": "changelogurl",
467             "description": "Version 5.6.5 description",
468             "downloadUrl": "downloadurl",
469             "plugins": {},
470             "releaseDate": "2017-03-01",
471             "version": "5.6.5",
472           },
473         ]
474       }
475     />
476   </div>
477   <div
478     className="modal-foot"
479   >
480     <ForwardRef(Link)
481       className="pull-left link-no-underline display-flex-center"
482       target="_blank"
483       to="https://www.sonarsource.com/products/sonarqube/downloads/?referrer=sonarqube"
484     >
485       system.see_sonarqube_downloads
486     </ForwardRef(Link)>
487     <ResetButtonLink
488       onClick={[MockFunction]}
489     >
490       cancel
491     </ResetButtonLink>
492   </div>
493 </Modal>
494 `;