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