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 "sinceLeakPeriod": 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]}
121 onScroll={[MockFunction]}
124 "author": "Developer 1",
125 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
126 "creationDate": "2013-05-13T17:55:39+0200",
129 "message": "'3' is a magic number.",
130 "project": "com.github.kevinsawicki:http-request",
131 "resolution": undefined,
132 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
133 "securityCategory": "command-injection",
134 "status": "TO_REVIEW",
135 "updateDate": "2013-05-13T17:55:39+0200",
136 "vulnerabilityProbability": "HIGH",
143 "title": "Sensitive Cookie Without 'HttpOnly' Flag",
146 "title": "No CWE associated",
149 "owaspTop10": Object {
151 "title": "Injection",
154 "title": "Broken Authentication",
157 "title": "Sensitive Data Exposure",
160 "owaspTop10-2021": Object {
162 "title": "Injection",
165 "title": "Broken Authentication",
168 "title": "Sensitive Data Exposure",
171 "sansTop25": Object {
172 "insecure-interaction": Object {
173 "title": "Insecure Interaction Between Components",
175 "porous-defenses": Object {
176 "title": "Porous Defenses",
178 "risky-resource": Object {
179 "title": "Risky Resource Management",
182 "sonarsourceSecurity": Object {
183 "buffer-overflow": Object {
184 "title": "Buffer Overflow",
187 "title": "Code Injection (RCE)",
189 "sql-injection": Object {
190 "title": "SQL Injection",
200 exports[`should render correctly when filtered by category or cwe: cwe 1`] = `
202 className="layout-page-side"
210 className="layout-page-side-inner"
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",
232 "author": "Developer 1",
233 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
234 "creationDate": "2013-05-13T17:55:39+0200",
237 "message": "'3' is a magic number.",
238 "project": "com.github.kevinsawicki:http-request",
239 "resolution": undefined,
240 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
241 "securityCategory": "command-injection",
242 "status": "TO_REVIEW",
243 "updateDate": "2013-05-13T17:55:39+0200",
244 "vulnerabilityProbability": "HIGH",
250 onHotspotClick={[MockFunction]}
251 onLoadMore={[MockFunction]}
252 onLocationClick={[MockFunction]}
253 onScroll={[MockFunction]}
256 "author": "Developer 1",
257 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
258 "creationDate": "2013-05-13T17:55:39+0200",
261 "message": "'3' is a magic number.",
262 "project": "com.github.kevinsawicki:http-request",
263 "resolution": undefined,
264 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
265 "securityCategory": "command-injection",
266 "status": "TO_REVIEW",
267 "updateDate": "2013-05-13T17:55:39+0200",
268 "vulnerabilityProbability": "HIGH",
275 "title": "Sensitive Cookie Without 'HttpOnly' Flag",
278 "title": "No CWE associated",
281 "owaspTop10": Object {
283 "title": "Injection",
286 "title": "Broken Authentication",
289 "title": "Sensitive Data Exposure",
292 "owaspTop10-2021": Object {
294 "title": "Injection",
297 "title": "Broken Authentication",
300 "title": "Sensitive Data Exposure",
303 "sansTop25": Object {
304 "insecure-interaction": Object {
305 "title": "Insecure Interaction Between Components",
307 "porous-defenses": Object {
308 "title": "Porous Defenses",
310 "risky-resource": Object {
311 "title": "Risky Resource Management",
314 "sonarsourceSecurity": Object {
315 "buffer-overflow": Object {
316 "title": "Buffer Overflow",
319 "title": "Code Injection (RCE)",
321 "sql-injection": Object {
322 "title": "SQL Injection",
332 exports[`should render correctly with hotspots 1`] = `
334 id="security_hotspots"
337 suggestions="security_hotspots"
341 encodeSpecialCharacters={true}
342 prioritizeSeoTags={false}
343 title="hotspots.page"
346 anchor="security_hotspots_main"
348 <withCurrentUserContext(FilterBar)
351 "breadcrumbs": Array [],
355 "qualityGate": Object {
360 "qualityProfiles": Array [
373 "assignedToMe": false,
374 "sinceLeakPeriod": false,
375 "status": "TO_REVIEW",
378 isStaticListOfHotspots={true}
379 loadingMeasure={false}
381 onChangeFilters={[MockFunction]}
382 onShowAllHotspots={[MockFunction]}
387 isStaticListOfHotspots={true}
392 exports[`should render correctly with hotspots 2`] = `
394 className="layout-page-side"
402 className="layout-page-side-inner"
408 "author": "Developer 1",
409 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
410 "creationDate": "2013-05-13T17:55:39+0200",
413 "message": "'3' is a magic number.",
414 "project": "com.github.kevinsawicki:http-request",
415 "resolution": undefined,
416 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
417 "securityCategory": "command-injection",
418 "status": "TO_REVIEW",
419 "updateDate": "2013-05-13T17:55:39+0200",
420 "vulnerabilityProbability": "HIGH",
423 "author": "Developer 1",
424 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
425 "creationDate": "2013-05-13T17:55:39+0200",
428 "message": "'3' is a magic number.",
429 "project": "com.github.kevinsawicki:http-request",
430 "resolution": undefined,
431 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
432 "securityCategory": "command-injection",
433 "status": "TO_REVIEW",
434 "updateDate": "2013-05-13T17:55:39+0200",
435 "vulnerabilityProbability": "HIGH",
440 isStaticListOfHotspots={true}
442 onHotspotClick={[MockFunction]}
443 onLoadMore={[MockFunction]}
444 onLocationClick={[MockFunction]}
445 onScroll={[MockFunction]}
446 securityCategories={Object {}}
449 "author": "Developer 1",
450 "component": "com.github.kevinsawicki:http-request:com.github.kevinsawicki.http.HttpRequest",
451 "creationDate": "2013-05-13T17:55:39+0200",
454 "message": "'3' is a magic number.",
455 "project": "com.github.kevinsawicki:http-request",
456 "resolution": undefined,
457 "rule": "checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MagicNumberCheck",
458 "securityCategory": "command-injection",
459 "status": "TO_REVIEW",
460 "updateDate": "2013-05-13T17:55:39+0200",
461 "vulnerabilityProbability": "HIGH",
464 statusFilter="TO_REVIEW"
470 exports[`should render correctly: loading 1`] = `
472 id="security_hotspots"
475 suggestions="security_hotspots"
479 encodeSpecialCharacters={true}
480 prioritizeSeoTags={false}
481 title="hotspots.page"
484 anchor="security_hotspots_main"
486 <withCurrentUserContext(FilterBar)
489 "breadcrumbs": Array [],
493 "qualityGate": Object {
498 "qualityProfiles": Array [
511 "assignedToMe": false,
512 "sinceLeakPeriod": false,
513 "status": "TO_REVIEW",
516 isStaticListOfHotspots={true}
517 loadingMeasure={false}
519 onChangeFilters={[MockFunction]}
520 onShowAllHotspots={[MockFunction]}
523 className="layout-page"
526 className="layout-page-side-inner"
529 className="big-spacer-top"
536 exports[`should render correctly: no hotspots with filters 1`] = `
538 id="security_hotspots"
541 suggestions="security_hotspots"
545 encodeSpecialCharacters={true}
546 prioritizeSeoTags={false}
547 title="hotspots.page"
550 anchor="security_hotspots_main"
552 <withCurrentUserContext(FilterBar)
555 "breadcrumbs": Array [],
559 "qualityGate": Object {
564 "qualityProfiles": Array [
577 "assignedToMe": true,
578 "sinceLeakPeriod": false,
579 "status": "TO_REVIEW",
582 isStaticListOfHotspots={true}
583 loadingMeasure={false}
585 onChangeFilters={[MockFunction]}
586 onShowAllHotspots={[MockFunction]}
591 isStaticListOfHotspots={true}