]> source.dussan.org Git - sonarqube.git/blob
01cd2d0dee6790f33e3154cfd43d986a98f228ca
[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         <li>
76           <a
77             download="sonarqube_access.log"
78             href="/api/system/logs?process=access"
79             id="access-logs-link"
80             rel="noopener noreferrer"
81             target="_blank"
82           >
83             Access Logs
84           </a>
85         </li>
86       </ul>
87     }
88   >
89     <Button>
90       system.download_logs
91       <DropdownIcon
92         className="little-spacer-left"
93       />
94     </Button>
95   </Dropdown>
96   <a
97     className="button spacer-left"
98     download="sonarqube-support-info-filesuffix(MyServerId).json"
99     href="/api/system/info"
100     id="download-link"
101     onClick={[Function]}
102     rel="noopener noreferrer"
103     target="_blank"
104   >
105     system.download_system_info
106   </a>
107   <ContextConsumer>
108     <Component />
109   </ContextConsumer>
110 </div>
111 `;
112
113 exports[`should render correctly 2`] = `
114 <Dropdown
115   className="display-inline-block spacer-left"
116   overlay={
117     <ul
118       className="menu"
119     >
120       <li>
121         <a
122           download="sonarqube_app.log"
123           href="/api/system/logs?process=app"
124           id="logs-link"
125           rel="noopener noreferrer"
126           target="_blank"
127         >
128           Main Process
129         </a>
130       </li>
131       <li>
132         <a
133           download="sonarqube_ce.log"
134           href="/api/system/logs?process=ce"
135           id="ce-logs-link"
136           rel="noopener noreferrer"
137           target="_blank"
138         >
139           Compute Engine
140         </a>
141       </li>
142       <li>
143         <a
144           download="sonarqube_es.log"
145           href="/api/system/logs?process=es"
146           id="es-logs-link"
147           rel="noopener noreferrer"
148           target="_blank"
149         >
150           Search Engine
151         </a>
152       </li>
153       <li>
154         <a
155           download="sonarqube_web.log"
156           href="/api/system/logs?process=web"
157           id="web-logs-link"
158           rel="noopener noreferrer"
159           target="_blank"
160         >
161           Web Server
162         </a>
163       </li>
164       <li>
165         <a
166           download="sonarqube_access.log"
167           href="/api/system/logs?process=access"
168           id="access-logs-link"
169           rel="noopener noreferrer"
170           target="_blank"
171         >
172           Access Logs
173         </a>
174       </li>
175     </ul>
176   }
177 >
178   <Button>
179     system.download_logs
180     <DropdownIcon
181       className="little-spacer-left"
182     />
183   </Button>
184 </Dropdown>
185 `;
186
187 exports[`should render without restart and log download 1`] = `
188 <div
189   className="page-actions"
190 >
191   <span>
192     <span
193       className="text-middle"
194     >
195       system.logs_level
196       :
197       <strong
198         className="little-spacer-left"
199       >
200         INFO
201       </strong>
202     </span>
203     <EditButton
204       className="spacer-left button-small"
205       id="edit-logs-level-button"
206       onClick={[Function]}
207     />
208   </span>
209   <a
210     className="button spacer-left"
211     download="sonarqube-support-info-filesuffix().json"
212     href="/api/system/info"
213     id="download-link"
214     onClick={[Function]}
215     rel="noopener noreferrer"
216     target="_blank"
217   >
218     system.download_system_info
219   </a>
220 </div>
221 `;