1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
8 suggestions="security_hotspots"
12 encodeSpecialCharacters={true}
16 anchor="security_hotspots_main"
18 <Connect(withCurrentUser(FilterBar))
21 "breadcrumbs": Array [],
25 "qualityGate": Object {
30 "qualityProfiles": Array [
43 "assignedToMe": false,
44 "sinceLeakPeriod": false,
45 "status": "TO_REVIEW",
48 isStaticListOfHotspots={true}
49 loadingMeasure={false}
51 onChangeFilters={[MockFunction]}
52 onShowAllHotspots={[MockFunction]}
56 isStaticListOfHotspots={true}
61 exports[`should render correctly when filtered by category or cwe: category 1`] = `
63 className="layout-page-side"
71 className="layout-page-side-inner"
77 "standard": "owaspTop10",
83 "author": "Developer 1",
84 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
85 "creationDate": "2013-05-13T17:55:39+0200",
88 "message": "'3' is a magic number.",
89 "project": "com.github.kevinsawicki:http-request",
90 "resolution": undefined,
91 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
92 "securityCategory": "command-injection",
93 "status": "TO_REVIEW",
94 "updateDate": "2013-05-13T17:55:39+0200",
95 "vulnerabilityProbability": "HIGH",
98 "author": "Developer 1",
99 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
100 "creationDate": "2013-05-13T17:55:39+0200",
103 "message": "'3' is a magic number.",
104 "project": "com.github.kevinsawicki:http-request",
105 "resolution": undefined,
106 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
107 "securityCategory": "command-injection",
108 "status": "TO_REVIEW",
109 "updateDate": "2013-05-13T17:55:39+0200",
110 "vulnerabilityProbability": "HIGH",
116 onHotspotClick={[MockFunction]}
117 onLoadMore={[MockFunction]}
120 "author": "Developer 1",
121 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
122 "creationDate": "2013-05-13T17:55:39+0200",
125 "message": "'3' is a magic number.",
126 "project": "com.github.kevinsawicki:http-request",
127 "resolution": undefined,
128 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
129 "securityCategory": "command-injection",
130 "status": "TO_REVIEW",
131 "updateDate": "2013-05-13T17:55:39+0200",
132 "vulnerabilityProbability": "HIGH",
139 "title": "Sensitive Cookie Without 'HttpOnly' Flag",
142 "title": "No CWE associated",
145 "owaspTop10": Object {
147 "title": "Injection",
150 "title": "Broken Authentication",
153 "title": "Sensitive Data Exposure",
156 "sansTop25": Object {
157 "insecure-interaction": Object {
158 "title": "Insecure Interaction Between Components",
160 "porous-defenses": Object {
161 "title": "Porous Defenses",
163 "risky-resource": Object {
164 "title": "Risky Resource Management",
167 "sonarsourceSecurity": Object {
168 "buffer-overflow": Object {
169 "title": "Buffer Overflow",
172 "title": "Code Injection (RCE)",
174 "sql-injection": Object {
175 "title": "SQL Injection",
185 exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
187 className="layout-page-side"
195 className="layout-page-side-inner"
202 "author": "Developer 1",
203 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
204 "creationDate": "2013-05-13T17:55:39+0200",
207 "message": "'3' is a magic number.",
208 "project": "com.github.kevinsawicki:http-request",
209 "resolution": undefined,
210 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
211 "securityCategory": "command-injection",
212 "status": "TO_REVIEW",
213 "updateDate": "2013-05-13T17:55:39+0200",
214 "vulnerabilityProbability": "HIGH",
217 "author": "Developer 1",
218 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
219 "creationDate": "2013-05-13T17:55:39+0200",
222 "message": "'3' is a magic number.",
223 "project": "com.github.kevinsawicki:http-request",
224 "resolution": undefined,
225 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
226 "securityCategory": "command-injection",
227 "status": "TO_REVIEW",
228 "updateDate": "2013-05-13T17:55:39+0200",
229 "vulnerabilityProbability": "HIGH",
235 onHotspotClick={[MockFunction]}
236 onLoadMore={[MockFunction]}
239 "author": "Developer 1",
240 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
241 "creationDate": "2013-05-13T17:55:39+0200",
244 "message": "'3' is a magic number.",
245 "project": "com.github.kevinsawicki:http-request",
246 "resolution": undefined,
247 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
248 "securityCategory": "command-injection",
249 "status": "TO_REVIEW",
250 "updateDate": "2013-05-13T17:55:39+0200",
251 "vulnerabilityProbability": "HIGH",
258 "title": "Sensitive Cookie Without 'HttpOnly' Flag",
261 "title": "No CWE associated",
264 "owaspTop10": Object {
266 "title": "Injection",
269 "title": "Broken Authentication",
272 "title": "Sensitive Data Exposure",
275 "sansTop25": Object {
276 "insecure-interaction": Object {
277 "title": "Insecure Interaction Between Components",
279 "porous-defenses": Object {
280 "title": "Porous Defenses",
282 "risky-resource": Object {
283 "title": "Risky Resource Management",
286 "sonarsourceSecurity": Object {
287 "buffer-overflow": Object {
288 "title": "Buffer Overflow",
291 "title": "Code Injection (RCE)",
293 "sql-injection": Object {
294 "title": "SQL Injection",
304 exports[`should render correctly with hotspots 1`] = `
306 id="security_hotspots"
309 suggestions="security_hotspots"
313 encodeSpecialCharacters={true}
314 title="hotspots.page"
317 anchor="security_hotspots_main"
319 <Connect(withCurrentUser(FilterBar))
322 "breadcrumbs": Array [],
326 "qualityGate": Object {
331 "qualityProfiles": Array [
344 "assignedToMe": false,
345 "sinceLeakPeriod": false,
346 "status": "TO_REVIEW",
349 isStaticListOfHotspots={true}
350 loadingMeasure={false}
352 onChangeFilters={[MockFunction]}
353 onShowAllHotspots={[MockFunction]}
357 isStaticListOfHotspots={true}
362 exports[`should render correctly with hotspots 2`] = `
364 className="layout-page-side"
372 className="layout-page-side-inner"
378 "author": "Developer 1",
379 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
380 "creationDate": "2013-05-13T17:55:39+0200",
383 "message": "'3' is a magic number.",
384 "project": "com.github.kevinsawicki:http-request",
385 "resolution": undefined,
386 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
387 "securityCategory": "command-injection",
388 "status": "TO_REVIEW",
389 "updateDate": "2013-05-13T17:55:39+0200",
390 "vulnerabilityProbability": "HIGH",
393 "author": "Developer 1",
394 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
395 "creationDate": "2013-05-13T17:55:39+0200",
398 "message": "'3' is a magic number.",
399 "project": "com.github.kevinsawicki:http-request",
400 "resolution": undefined,
401 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
402 "securityCategory": "command-injection",
403 "status": "TO_REVIEW",
404 "updateDate": "2013-05-13T17:55:39+0200",
405 "vulnerabilityProbability": "HIGH",
410 isStaticListOfHotspots={true}
412 onHotspotClick={[MockFunction]}
413 onLoadMore={[MockFunction]}
414 securityCategories={Object {}}
417 "author": "Developer 1",
418 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
419 "creationDate": "2013-05-13T17:55:39+0200",
422 "message": "'3' is a magic number.",
423 "project": "com.github.kevinsawicki:http-request",
424 "resolution": undefined,
425 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
426 "securityCategory": "command-injection",
427 "status": "TO_REVIEW",
428 "updateDate": "2013-05-13T17:55:39+0200",
429 "vulnerabilityProbability": "HIGH",
432 statusFilter="TO_REVIEW"
438 exports[`should render correctly: loading 1`] = `
440 id="security_hotspots"
443 suggestions="security_hotspots"
447 encodeSpecialCharacters={true}
448 title="hotspots.page"
451 anchor="security_hotspots_main"
453 <Connect(withCurrentUser(FilterBar))
456 "breadcrumbs": Array [],
460 "qualityGate": Object {
465 "qualityProfiles": Array [
478 "assignedToMe": false,
479 "sinceLeakPeriod": false,
480 "status": "TO_REVIEW",
483 isStaticListOfHotspots={true}
484 loadingMeasure={false}
486 onChangeFilters={[MockFunction]}
487 onShowAllHotspots={[MockFunction]}
490 className="huge-spacer-left big-spacer-top"
495 exports[`should render correctly: no hotspots with filters 1`] = `
497 id="security_hotspots"
500 suggestions="security_hotspots"
504 encodeSpecialCharacters={true}
505 title="hotspots.page"
508 anchor="security_hotspots_main"
510 <Connect(withCurrentUser(FilterBar))
513 "breadcrumbs": Array [],
517 "qualityGate": Object {
522 "qualityProfiles": Array [
535 "assignedToMe": true,
536 "sinceLeakPeriod": false,
537 "status": "TO_REVIEW",
540 isStaticListOfHotspots={true}
541 loadingMeasure={false}
543 onChangeFilters={[MockFunction]}
544 onShowAllHotspots={[MockFunction]}
548 isStaticListOfHotspots={true}