1 // Jest Snapshot v1, https://goo.gl/fbAQLP
3 exports[`should render correctly 1`] = `
8 suggestions="security_hotspots"
12 encodeSpecialCharacters={true}
13 prioritizeSeoTags={false}
17 anchor="security_hotspots_main"
19 <withCurrentUserContext(FilterBar)
22 "breadcrumbs": Array [],
26 "qualityGate": Object {
31 "qualityProfiles": Array [
44 "assignedToMe": false,
45 "inNewCodePeriod": false,
46 "status": "TO_REVIEW",
49 isStaticListOfHotspots={true}
50 loadingMeasure={false}
52 onChangeFilters={[MockFunction]}
53 onShowAllHotspots={[MockFunction]}
58 isStaticListOfHotspots={true}
63 exports[`should render correctly when filtered by category or cwe: category 1`] = `
65 className="layout-page-side"
73 className="layout-page-side-inner"
79 "standard": "owaspTop10",
85 "author": "Developer 1",
86 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
87 "creationDate": "2013-05-13T17:55:39+0200",
90 "message": "'3' is a magic number.",
91 "project": "com.github.kevinsawicki:http-request",
92 "resolution": undefined,
93 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
94 "securityCategory": "command-injection",
95 "status": "TO_REVIEW",
96 "updateDate": "2013-05-13T17:55:39+0200",
97 "vulnerabilityProbability": "HIGH",
100 "author": "Developer 1",
101 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
102 "creationDate": "2013-05-13T17:55:39+0200",
105 "message": "'3' is a magic number.",
106 "project": "com.github.kevinsawicki:http-request",
107 "resolution": undefined,
108 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
109 "securityCategory": "command-injection",
110 "status": "TO_REVIEW",
111 "updateDate": "2013-05-13T17:55:39+0200",
112 "vulnerabilityProbability": "HIGH",
118 onHotspotClick={[MockFunction]}
119 onLoadMore={[MockFunction]}
120 onLocationClick={[MockFunction]}
123 "author": "Developer 1",
124 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
125 "creationDate": "2013-05-13T17:55:39+0200",
128 "message": "'3' is a magic number.",
129 "project": "com.github.kevinsawicki:http-request",
130 "resolution": undefined,
131 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
132 "securityCategory": "command-injection",
133 "status": "TO_REVIEW",
134 "updateDate": "2013-05-13T17:55:39+0200",
135 "vulnerabilityProbability": "HIGH",
142 "title": "Sensitive Cookie Without 'HttpOnly' Flag",
145 "title": "No CWE associated",
148 "owaspTop10": Object {
150 "title": "Injection",
153 "title": "Broken Authentication",
156 "title": "Sensitive Data Exposure",
159 "owaspTop10-2021": Object {
161 "title": "Injection",
164 "title": "Broken Authentication",
167 "title": "Sensitive Data Exposure",
170 "pciDss-3.2": Object {
172 "title": " Install and maintain a firewall configuration to protect cardholder data",
175 "pciDss-4.0": Object {
177 "title": "This is useless...",
180 "sansTop25": Object {
181 "insecure-interaction": Object {
182 "title": "Insecure Interaction Between Components",
184 "porous-defenses": Object {
185 "title": "Porous Defenses",
187 "risky-resource": Object {
188 "title": "Risky Resource Management",
191 "sonarsourceSecurity": Object {
192 "buffer-overflow": Object {
193 "title": "Buffer Overflow",
196 "title": "Code Injection (RCE)",
198 "sql-injection": Object {
199 "title": "SQL Injection",
209 exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
211 className="layout-page-side"
219 className="layout-page-side-inner"
226 "author": "Developer 1",
227 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
228 "creationDate": "2013-05-13T17:55:39+0200",
231 "message": "'3' is a magic number.",
232 "project": "com.github.kevinsawicki:http-request",
233 "resolution": undefined,
234 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
235 "securityCategory": "command-injection",
236 "status": "TO_REVIEW",
237 "updateDate": "2013-05-13T17:55:39+0200",
238 "vulnerabilityProbability": "HIGH",
241 "author": "Developer 1",
242 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
243 "creationDate": "2013-05-13T17:55:39+0200",
246 "message": "'3' is a magic number.",
247 "project": "com.github.kevinsawicki:http-request",
248 "resolution": undefined,
249 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
250 "securityCategory": "command-injection",
251 "status": "TO_REVIEW",
252 "updateDate": "2013-05-13T17:55:39+0200",
253 "vulnerabilityProbability": "HIGH",
259 onHotspotClick={[MockFunction]}
260 onLoadMore={[MockFunction]}
261 onLocationClick={[MockFunction]}
264 "author": "Developer 1",
265 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
266 "creationDate": "2013-05-13T17:55:39+0200",
269 "message": "'3' is a magic number.",
270 "project": "com.github.kevinsawicki:http-request",
271 "resolution": undefined,
272 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
273 "securityCategory": "command-injection",
274 "status": "TO_REVIEW",
275 "updateDate": "2013-05-13T17:55:39+0200",
276 "vulnerabilityProbability": "HIGH",
283 "title": "Sensitive Cookie Without 'HttpOnly' Flag",
286 "title": "No CWE associated",
289 "owaspTop10": Object {
291 "title": "Injection",
294 "title": "Broken Authentication",
297 "title": "Sensitive Data Exposure",
300 "owaspTop10-2021": Object {
302 "title": "Injection",
305 "title": "Broken Authentication",
308 "title": "Sensitive Data Exposure",
311 "pciDss-3.2": Object {
313 "title": " Install and maintain a firewall configuration to protect cardholder data",
316 "pciDss-4.0": Object {
318 "title": "This is useless...",
321 "sansTop25": Object {
322 "insecure-interaction": Object {
323 "title": "Insecure Interaction Between Components",
325 "porous-defenses": Object {
326 "title": "Porous Defenses",
328 "risky-resource": Object {
329 "title": "Risky Resource Management",
332 "sonarsourceSecurity": Object {
333 "buffer-overflow": Object {
334 "title": "Buffer Overflow",
337 "title": "Code Injection (RCE)",
339 "sql-injection": Object {
340 "title": "SQL Injection",
350 exports[`should render correctly with hotspots 1`] = `
352 id="security_hotspots"
355 suggestions="security_hotspots"
359 encodeSpecialCharacters={true}
360 prioritizeSeoTags={false}
361 title="hotspots.page"
364 anchor="security_hotspots_main"
366 <withCurrentUserContext(FilterBar)
369 "breadcrumbs": Array [],
373 "qualityGate": Object {
378 "qualityProfiles": Array [
391 "assignedToMe": false,
392 "inNewCodePeriod": false,
393 "status": "TO_REVIEW",
396 isStaticListOfHotspots={true}
397 loadingMeasure={false}
399 onChangeFilters={[MockFunction]}
400 onShowAllHotspots={[MockFunction]}
405 isStaticListOfHotspots={true}
410 exports[`should render correctly with hotspots 2`] = `
412 className="layout-page-side"
420 className="layout-page-side-inner"
426 "author": "Developer 1",
427 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
428 "creationDate": "2013-05-13T17:55:39+0200",
431 "message": "'3' is a magic number.",
432 "project": "com.github.kevinsawicki:http-request",
433 "resolution": undefined,
434 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
435 "securityCategory": "command-injection",
436 "status": "TO_REVIEW",
437 "updateDate": "2013-05-13T17:55:39+0200",
438 "vulnerabilityProbability": "HIGH",
441 "author": "Developer 1",
442 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
443 "creationDate": "2013-05-13T17:55:39+0200",
446 "message": "'3' is a magic number.",
447 "project": "com.github.kevinsawicki:http-request",
448 "resolution": undefined,
449 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
450 "securityCategory": "command-injection",
451 "status": "TO_REVIEW",
452 "updateDate": "2013-05-13T17:55:39+0200",
453 "vulnerabilityProbability": "HIGH",
458 isStaticListOfHotspots={true}
460 onHotspotClick={[MockFunction]}
461 onLoadMore={[MockFunction]}
462 onLocationClick={[MockFunction]}
463 securityCategories={Object {}}
466 "author": "Developer 1",
467 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
468 "creationDate": "2013-05-13T17:55:39+0200",
471 "message": "'3' is a magic number.",
472 "project": "com.github.kevinsawicki:http-request",
473 "resolution": undefined,
474 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
475 "securityCategory": "command-injection",
476 "status": "TO_REVIEW",
477 "updateDate": "2013-05-13T17:55:39+0200",
478 "vulnerabilityProbability": "HIGH",
481 statusFilter="TO_REVIEW"
487 exports[`should render correctly: loading 1`] = `
489 id="security_hotspots"
492 suggestions="security_hotspots"
496 encodeSpecialCharacters={true}
497 prioritizeSeoTags={false}
498 title="hotspots.page"
501 anchor="security_hotspots_main"
503 <withCurrentUserContext(FilterBar)
506 "breadcrumbs": Array [],
510 "qualityGate": Object {
515 "qualityProfiles": Array [
528 "assignedToMe": false,
529 "inNewCodePeriod": false,
530 "status": "TO_REVIEW",
533 isStaticListOfHotspots={true}
534 loadingMeasure={false}
536 onChangeFilters={[MockFunction]}
537 onShowAllHotspots={[MockFunction]}
540 className="layout-page"
543 className="layout-page-side-inner"
546 className="big-spacer-top"
553 exports[`should render correctly: no hotspots with filters 1`] = `
555 id="security_hotspots"
558 suggestions="security_hotspots"
562 encodeSpecialCharacters={true}
563 prioritizeSeoTags={false}
564 title="hotspots.page"
567 anchor="security_hotspots_main"
569 <withCurrentUserContext(FilterBar)
572 "breadcrumbs": Array [],
576 "qualityGate": Object {
581 "qualityProfiles": Array [
594 "assignedToMe": true,
595 "inNewCodePeriod": false,
596 "status": "TO_REVIEW",
599 isStaticListOfHotspots={true}
600 loadingMeasure={false}
602 onChangeFilters={[MockFunction]}
603 onShowAllHotspots={[MockFunction]}
608 isStaticListOfHotspots={true}