]> source.dussan.org Git - sonarqube.git/blob
6750da1de55e2ae4f7a0adb3adfb2bc4d191a697
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly 1`] = `
4 <div
5   className="page-actions"
6 >
7   <span>
8     <span
9       className="text-middle"
10     >
11       system.logs_level
12       :
13       <strong
14         className="little-spacer-left"
15       >
16         INFO
17       </strong>
18     </span>
19     <EditButton
20       className="spacer-left button-small"
21       id="edit-logs-level-button"
22       onClick={[Function]}
23     />
24   </span>
25   <Dropdown
26     className="display-inline-block spacer-left"
27     overlay={
28       <ul
29         className="menu"
30       >
31         <li>
32           <a
33             download="sonarqube_app.log"
34             href="/api/system/logs?process=app"
35             id="logs-link"
36             rel="noopener noreferrer"
37             target="_blank"
38           >
39             Main Process
40           </a>
41         </li>
42         <li>
43           <a
44             download="sonarqube_ce.log"
45             href="/api/system/logs?process=ce"
46             id="ce-logs-link"
47             rel="noopener noreferrer"
48             target="_blank"
49           >
50             Compute Engine
51           </a>
52         </li>
53         <li>
54           <a
55             download="sonarqube_es.log"
56             href="/api/system/logs?process=es"
57             id="es-logs-link"
58             rel="noopener noreferrer"
59             target="_blank"
60           >
61             Search Engine
62           </a>
63         </li>
64         <li>
65           <a
66             download="sonarqube_web.log"
67             href="/api/system/logs?process=web"
68             id="web-logs-link"
69             rel="noopener noreferrer"
70             target="_blank"
71           >
72             Web Server
73           </a>
74         </li>
75       </ul>
76     }
77   >
78     <Button>
79       system.download_logs
80       <DropdownIcon
81         className="little-spacer-left"
82       />
83     </Button>
84   </Dropdown>
85   <a
86     className="button spacer-left"
87     download="sonarqube-support-info-filesuffix(MyServerId).json"
88     href="/api/system/info"
89     id="download-link"
90     onClick={[Function]}
91     rel="noopener noreferrer"
92     target="_blank"
93   >
94     system.download_system_info
95   </a>
96   <ContextConsumer>
97     <Component />
98   </ContextConsumer>
99 </div>
100 `;
101
102 exports[`should render correctly 2`] = `
103 <Dropdown
104   className="display-inline-block spacer-left"
105   overlay={
106     <ul
107       className="menu"
108     >
109       <li>
110         <a
111           download="sonarqube_app.log"
112           href="/api/system/logs?process=app"
113           id="logs-link"
114           rel="noopener noreferrer"
115           target="_blank"
116         >
117           Main Process
118         </a>
119       </li>
120       <li>
121         <a
122           download="sonarqube_ce.log"
123           href="/api/system/logs?process=ce"
124           id="ce-logs-link"
125           rel="noopener noreferrer"
126           target="_blank"
127         >
128           Compute Engine
129         </a>
130       </li>
131       <li>
132         <a
133           download="sonarqube_es.log"
134           href="/api/system/logs?process=es"
135           id="es-logs-link"
136           rel="noopener noreferrer"
137           target="_blank"
138         >
139           Search Engine
140         </a>
141       </li>
142       <li>
143         <a
144           download="sonarqube_web.log"
145           href="/api/system/logs?process=web"
146           id="web-logs-link"
147           rel="noopener noreferrer"
148           target="_blank"
149         >
150           Web Server
151         </a>
152       </li>
153     </ul>
154   }
155 >
156   <Button>
157     system.download_logs
158     <DropdownIcon
159       className="little-spacer-left"
160     />
161   </Button>
162 </Dropdown>
163 `;
164
165 exports[`should render without restart and log download 1`] = `
166 <div
167   className="page-actions"
168 >
169   <span>
170     <span
171       className="text-middle"
172     >
173       system.logs_level
174       :
175       <strong
176         className="little-spacer-left"
177       >
178         INFO
179       </strong>
180     </span>
181     <EditButton
182       className="spacer-left button-small"
183       id="edit-logs-level-button"
184       onClick={[Function]}
185     />
186   </span>
187   <a
188     className="button spacer-left"
189     download="sonarqube-support-info-filesuffix().json"
190     href="/api/system/info"
191     id="download-link"
192     onClick={[Function]}
193     rel="noopener noreferrer"
194     target="_blank"
195   >
196     system.download_system_info
197   </a>
198 </div>
199 `;