Skip to content

Commit 724f800

Browse files
committed
Fixed nuclei integration-test timeout
Test uses specific template id that are expected to get results, instead of all available templates Locally: time needed for test decreased from 156s to 27s Signed-off-by: Ilyes Ben Dlala <ilyes.bendlala@iteratec.com>
1 parent 220f54b commit 724f800

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

scanners/nuclei/integration-tests/nuclei.test.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,13 @@ test(
1212
const { categories, severities, count } = await scan(
1313
"nuclei-bodgeit",
1414
"nuclei",
15-
["-no-interactsh", "-u", "http://bodgeit.demo-targets.svc.cluster.local:8080"],
15+
["-no-interactsh", "-template-id", "http-missing-security-headers,tomcat-detect",
16+
"-u", "http://bodgeit.demo-targets.svc.cluster.local:8080"],
1617
180
1718
);
1819

19-
expect(count).toBeGreaterThanOrEqual(15);
20-
expect(severities["informational"]).toBeGreaterThanOrEqual(15);
20+
expect(count).toBeGreaterThanOrEqual(10);
21+
expect(severities["informational"]).toBeGreaterThanOrEqual(10);
2122
expect(categories["http-missing-security-headers"]).toBeGreaterThanOrEqual(8);
2223
expect(categories["tomcat-detect"]).toBe(1);
2324
},

0 commit comments

Comments
 (0)