]> source.dussan.org Git - sonarqube.git/blob
9f662b5310169e60ce14b7f030936265b08c74bd
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should display a pending plugin notif 1`] = `
4 <PendingPluginsActionNotif
5   fetchSystemStatus={[MockFunction]}
6   pending={
7     {
8       "installing": [
9         {
10           "implementationBuild": "1",
11           "key": "foo",
12           "name": "Foo",
13           "version": "1.0",
14         },
15       ],
16       "removing": [],
17       "updating": [],
18     }
19   }
20   refreshPending={[MockFunction]}
21   systemStatus="UP"
22 />
23 `;
24
25 exports[`should display restart notif 1`] = `<SystemRestartNotif />`;
26
27 exports[`should render correctly when governance is active 1`] = `
28 <ContextNavBar
29   height={72}
30   id="context-navigation"
31   label="settings"
32 >
33   <div
34     className="navbar-context-header"
35   >
36     <h1>
37       layout.settings
38     </h1>
39   </div>
40   <NavBarTabs>
41     <Dropdown
42       overlay={
43         <ul
44           className="menu dropdown-menu"
45         >
46           <li>
47             <NavLink
48               end={true}
49               to="/admin/settings"
50             >
51               settings.page
52             </NavLink>
53           </li>
54           <li>
55             <NavLink
56               end={true}
57               to="/admin/settings/encryption"
58             >
59               property.category.security.encryption
60             </NavLink>
61           </li>
62           <li>
63             <NavLink
64               end={true}
65               to="/admin/webhooks"
66             >
67               webhooks.page
68             </NavLink>
69           </li>
70           <li>
71             <NavLink
72               to="/admin/extension/governance/views_console"
73             >
74               governance
75             </NavLink>
76           </li>
77         </ul>
78       }
79       tagName="li"
80     >
81       <Component />
82     </Dropdown>
83     <Dropdown
84       overlay={
85         <ul
86           className="menu dropdown-menu"
87         >
88           <li>
89             <NavLink
90               end={true}
91               to="/admin/users"
92             >
93               users.page
94             </NavLink>
95           </li>
96           <li>
97             <NavLink
98               end={true}
99               to="/admin/groups"
100             >
101               user_groups.page
102             </NavLink>
103           </li>
104           <li>
105             <NavLink
106               end={true}
107               to="/admin/permissions"
108             >
109               global_permissions.page
110             </NavLink>
111           </li>
112           <li>
113             <NavLink
114               end={true}
115               to="/admin/permission_templates"
116             >
117               permission_templates
118             </NavLink>
119           </li>
120         </ul>
121       }
122       tagName="li"
123     >
124       <Component />
125     </Dropdown>
126     <Dropdown
127       overlay={
128         <ul
129           className="menu dropdown-menu"
130         >
131           <li>
132             <NavLink
133               end={true}
134               to="/admin/projects_management"
135             >
136               management
137             </NavLink>
138           </li>
139           <li>
140             <NavLink
141               end={true}
142               to="/admin/background_tasks"
143             >
144               background_tasks.page
145             </NavLink>
146           </li>
147         </ul>
148       }
149       tagName="li"
150     >
151       <Component />
152     </Dropdown>
153     <li>
154       <NavLink
155         end={true}
156         to="/admin/system"
157       >
158         sidebar.system
159       </NavLink>
160     </li>
161     <li>
162       <NavLink
163         end={true}
164         to="/admin/marketplace"
165       >
166         marketplace.page
167       </NavLink>
168     </li>
169     <li>
170       <NavLink
171         end={true}
172         to="/admin/audit"
173       >
174         audit_logs.page
175       </NavLink>
176     </li>
177   </NavBarTabs>
178 </ContextNavBar>
179 `;
180
181 exports[`should work with extensions 1`] = `
182 <ContextNavBar
183   height={72}
184   id="context-navigation"
185   label="settings"
186 >
187   <div
188     className="navbar-context-header"
189   >
190     <h1>
191       layout.settings
192     </h1>
193   </div>
194   <NavBarTabs>
195     <Dropdown
196       overlay={
197         <ul
198           className="menu dropdown-menu"
199         >
200           <li>
201             <NavLink
202               end={true}
203               to="/admin/settings"
204             >
205               settings.page
206             </NavLink>
207           </li>
208           <li>
209             <NavLink
210               end={true}
211               to="/admin/settings/encryption"
212             >
213               property.category.security.encryption
214             </NavLink>
215           </li>
216           <li>
217             <NavLink
218               end={true}
219               to="/admin/webhooks"
220             >
221               webhooks.page
222             </NavLink>
223           </li>
224           <li>
225             <NavLink
226               to="/admin/extension/foo"
227             >
228               Foo
229             </NavLink>
230           </li>
231         </ul>
232       }
233       tagName="li"
234     >
235       <Component />
236     </Dropdown>
237     <Dropdown
238       overlay={
239         <ul
240           className="menu dropdown-menu"
241         >
242           <li>
243             <NavLink
244               end={true}
245               to="/admin/users"
246             >
247               users.page
248             </NavLink>
249           </li>
250           <li>
251             <NavLink
252               end={true}
253               to="/admin/groups"
254             >
255               user_groups.page
256             </NavLink>
257           </li>
258           <li>
259             <NavLink
260               end={true}
261               to="/admin/permissions"
262             >
263               global_permissions.page
264             </NavLink>
265           </li>
266           <li>
267             <NavLink
268               end={true}
269               to="/admin/permission_templates"
270             >
271               permission_templates
272             </NavLink>
273           </li>
274         </ul>
275       }
276       tagName="li"
277     >
278       <Component />
279     </Dropdown>
280     <Dropdown
281       overlay={
282         <ul
283           className="menu dropdown-menu"
284         >
285           <li>
286             <NavLink
287               end={true}
288               to="/admin/projects_management"
289             >
290               management
291             </NavLink>
292           </li>
293           <li>
294             <NavLink
295               end={true}
296               to="/admin/background_tasks"
297             >
298               background_tasks.page
299             </NavLink>
300           </li>
301         </ul>
302       }
303       tagName="li"
304     >
305       <Component />
306     </Dropdown>
307     <li>
308       <NavLink
309         end={true}
310         to="/admin/system"
311       >
312         sidebar.system
313       </NavLink>
314     </li>
315     <li>
316       <NavLink
317         end={true}
318         to="/admin/marketplace"
319       >
320         marketplace.page
321       </NavLink>
322     </li>
323   </NavBarTabs>
324 </ContextNavBar>
325 `;
326
327 exports[`should work with extensions 2`] = `
328 [
329   <Dropdown
330     overlay={
331       <ul
332         className="menu dropdown-menu"
333       >
334         <li>
335           <NavLink
336             end={true}
337             to="/admin/settings"
338           >
339             settings.page
340           </NavLink>
341         </li>
342         <li>
343           <NavLink
344             end={true}
345             to="/admin/settings/encryption"
346           >
347             property.category.security.encryption
348           </NavLink>
349         </li>
350         <li>
351           <NavLink
352             end={true}
353             to="/admin/webhooks"
354           >
355             webhooks.page
356           </NavLink>
357         </li>
358         <li>
359           <NavLink
360             to="/admin/extension/foo"
361           >
362             Foo
363           </NavLink>
364         </li>
365       </ul>
366     }
367     tagName="li"
368   >
369     <Component />
370   </Dropdown>,
371   <Dropdown
372     overlay={
373       <ul
374         className="menu dropdown-menu"
375       >
376         <li>
377           <NavLink
378             end={true}
379             to="/admin/users"
380           >
381             users.page
382           </NavLink>
383         </li>
384         <li>
385           <NavLink
386             end={true}
387             to="/admin/groups"
388           >
389             user_groups.page
390           </NavLink>
391         </li>
392         <li>
393           <NavLink
394             end={true}
395             to="/admin/permissions"
396           >
397             global_permissions.page
398           </NavLink>
399         </li>
400         <li>
401           <NavLink
402             end={true}
403             to="/admin/permission_templates"
404           >
405             permission_templates
406           </NavLink>
407         </li>
408       </ul>
409     }
410     tagName="li"
411   >
412     <Component />
413   </Dropdown>,
414   <Dropdown
415     overlay={
416       <ul
417         className="menu dropdown-menu"
418       >
419         <li>
420           <NavLink
421             end={true}
422             to="/admin/projects_management"
423           >
424             management
425           </NavLink>
426         </li>
427         <li>
428           <NavLink
429             end={true}
430             to="/admin/background_tasks"
431           >
432             background_tasks.page
433           </NavLink>
434         </li>
435       </ul>
436     }
437     tagName="li"
438   >
439     <Component />
440   </Dropdown>,
441 ]
442 `;